Share via


Message.GetBodyStream Method

Definition

Return the body stream of the current event data instance

public System.IO.Stream GetBodyStream();
member this.GetBodyStream : unit -> System.IO.Stream
Public Function GetBodyStream () As Stream

Returns

System.IO.Stream

Exceptions

System.InvalidOperationException

throws if the method has been called.

System.ObjectDisposedException

throws if the event data has already been disposed.

Remarks

This method can only be called once and afterwards method will throw System.InvalidOperationException.

Applies to