System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / IMessageFormatter Interface / Write Method
The Message that will contain the serialized object.
The object to be serialized into the message.



In This Topic
    Write Method (IMessageFormatter)
    In This Topic
    When implemented in a class, serializes an object into the body of the message.
    Syntax
    'Declaration
     
    
    Sub Write( _
       ByVal message As Message, _
       ByVal obj As Object _
    ) 
    'Usage
     
    
    Dim instance As IMessageFormatter
    Dim message As Message
    Dim obj As Object
     
    instance.Write(message, obj)
    void Write( 
       Message message,
       object obj
    )
    void Write( 
       Message^ message,
       Object^ obj
    ) 

    Parameters

    message
    The Message that will contain the serialized object.
    obj
    The object to be serialized into the message.
    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