IMessage Interface

Provides access to members that control the properties of a Message.

Members

Name Description
Read-only property ErrorInfo Valid when the message is a fault.
Read/write property Name Name of the message.
Read/write property NamespaceURI Namespace of the message.
Read-only property Parameters Parameters of the message.
Read/write property Properties Properties of the message.
Method ReadXML Reads an XML input stream for a message.
Read-only property Result HRESULT of the Message.
Method SetError Writes error information.
Method WriteXML Writes an XML output stream for a message.

IMessage.ErrorInfo Property

Valid when the message is a fault.

Public ReadOnly Property ErrorInfo As IErrorInfo
public IErrorInfo ErrorInfo {get;}

IMessage.Name Property

Name of the message.

Public Property Name As String
public string Name {get; set;}

IMessage.NamespaceURI Property

Namespace of the message.

Public Property NamespaceURI As String
public string NamespaceURI {get; set;}

IMessage.Parameters Property

Parameters of the message.

Public ReadOnly Property Parameters As IXMLSerializeData
public IXMLSerializeData Parameters {get;}

IMessage.Properties Property

Properties of the message.

Public Property Properties As IPropertySet
public IPropertySet Properties {get; set;}

IMessage.ReadXML Method

Reads an XML input stream for a message.

Public Sub ReadXML ( _
    ByVal Stream As IStream _
)
public void ReadXML (
    IStream Stream
);

IMessage.Result Property

HRESULT of the Message.

Public ReadOnly Property Result As Integer
public int Result {get;}

IMessage.SetError Method

Writes error information.

Public Sub SetError ( _
    ByVal hresult As Integer, _
    ByVal pErrorInfo As IErrorInfo _
)
public void SetError (
    int hresult,
    IErrorInfo pErrorInfo
);

IMessage.WriteXML Method

Writes an XML output stream for a message.

Public Sub WriteXML ( _
    ByVal Stream As IStream _
)
public void WriteXML (
    IStream Stream
);

Classes that implement IMessage

Classes Description
BinaryMessage
Message A serializable object that represents a request or response message.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.