System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / XmlMessageFormatter Class / Write Method
The Message whose Body property will contain the serialized object.
The System.Object to be serialized into the message body.



In This Topic
    Write Method (XmlMessageFormatter)
    In This Topic
    Serializes an object into the body of the message.
    Syntax
    'Declaration
     
    
    Public Sub Write( _
       ByVal message As Message, _
       ByVal obj As Object _
    ) 
    'Usage
     
    
    Dim instance As XmlMessageFormatter
    Dim message As Message
    Dim obj As Object
     
    instance.Write(message, obj)
    public void Write( 
       Message message,
       object obj
    )
    public:
    void Write( 
       Message^ message,
       Object^ obj
    ) 

    Parameters

    message
    The Message whose Body property will contain the serialized object.
    obj
    The System.Object to be serialized into the message body.
    Exceptions
    ExceptionDescription
    The message parameter is null.-or- The obj parameter is null.
    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