| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Get( _ ByVal message As Stream _ ) As PopMessage | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As PopMessage Dim message As Stream Dim value As PopMessage value = instance.Get(message) | |
| C# | |
|---|---|
public PopMessage Get( Stream message ) | |
| Managed Extensions for C++ | |
|---|---|
public: PopMessage* Get( Stream* message ) | |
| C++/CLI | |
|---|---|
public: PopMessage^ Get( Stream^ message ) | |
Parameters
- message
- The Stream to use for encapsulating the message.
Return Value
A PopMessage object, representing the message retrieved.This method gets a single message from the server, specifying the Stream to use. The behavior of this method depends on the type of Stream passed in. The following list describes how this method can be used:
- If message is a FileStream, the encoded message will be dumped to disk.
- If message is a MemoryStream, the encoded message will be in memory by accessing the PopMessage.Message property.
- If message is a MessageStream, the decoded message will be in memory by accessing the PopMessage.Message property.
To perform this operation asynchronously, use the PopMessage.BeginGet method.
Target Platforms: Microsoft .NET Framework 2.0