System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / Message Class / BodyStream Property



In This Topic
    BodyStream Property
    In This Topic
    Gets or sets the information in the body of the message.
    Syntax
    'Declaration
     
    
    Public Property BodyStream As Stream
    'Usage
     
    
    Dim instance As Message
    Dim value As Stream
     
    instance.BodyStream = value
     
    value = instance.BodyStream
    public Stream BodyStream {get; set;}
    public:
    property Stream^ BodyStream {
       Stream^ get();
       void set (    Stream^ value);
    }

    Property Value

    A System.IO.Stream that contains the serialized information included in the Body of the message.
    Exceptions
    ExceptionDescription
    The message queue is filtered to ignore the Body property.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also