Udostępnij za pośrednictwem


StreamMessageHelper.GetStream Method

Definition

Overloads

GetStream(Message)

Retrieves the stream of the specified message.

GetStream(XmlDictionaryReader)

Retrieves the stream of the specified message with the specified reader.

GetStream(Message)

Retrieves the stream of the specified message.

public static System.IO.Stream GetStream (System.ServiceModel.Channels.Message message);
static member GetStream : System.ServiceModel.Channels.Message -> System.IO.Stream
Public Shared Function GetStream (message As Message) As Stream

Parameters

message
Message

The message.

Returns

Returns aStream that contains the stream of the message. A Stream is always returned regardless of whether the message body is empty.

Applies to

GetStream(XmlDictionaryReader)

Retrieves the stream of the specified message with the specified reader.

public static System.IO.Stream GetStream (System.Xml.XmlDictionaryReader reader);
static member GetStream : System.Xml.XmlDictionaryReader -> System.IO.Stream
Public Shared Function GetStream (reader As XmlDictionaryReader) As Stream

Parameters

reader
XmlDictionaryReader

The reader.

Returns

The stream of the specified message.

Applies to