Message Methods
.NET Framework 4.5
The Message type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginWriteBodyContents | Starts the asynchronous writing of the contents of the message body. |
|
BeginWriteMessage | Starts the asynchronous writing of the entire message. |
|
Close | Closes the Message and releases any resources. |
|
CreateBufferedCopy | Stores an entire Message into a memory buffer for future access. |
|
CreateMessage(MessageVersion, String) | Creates a message that contains a version and an action. |
|
CreateMessage(MessageVersion, MessageFault, String) | Creates a message that contains a SOAP fault, a version and an action. |
|
CreateMessage(MessageVersion, String, Object) | Creates a message with the specified version, action and body. |
|
CreateMessage(MessageVersion, String, BodyWriter) | Creates a message with a body that consists of an array of bytes. |
|
CreateMessage(MessageVersion, String, XmlDictionaryReader) | Creates a message with the specified version, action and body. |
|
CreateMessage(MessageVersion, String, XmlReader) | Creates a message using the specified reader, action and version. |
|
CreateMessage(XmlDictionaryReader, Int32, MessageVersion) | Creates a message using the specified reader, action and version. |
|
CreateMessage(XmlReader, Int32, MessageVersion) | Creates a message using the specified reader, action and version. |
|
CreateMessage(MessageVersion, FaultCode, String, String) | Creates a message that contains a SOAP fault, the reason for the fault, a version and an action. |
|
CreateMessage(MessageVersion, String, Object, XmlObjectSerializer) | Creates a message using the specified version, action, message body and serializer. |
|
CreateMessage(MessageVersion, FaultCode, String, Object, String) | Creates a message that contains a SOAP fault, a reason and the detail for the fault, a version and an action. |
|
EndWriteBodyContents | Ends the asynchronous writing of the contents of the message body. |
|
EndWriteMessage | Ends the asynchronous writing of the entire message. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetBody<T>() | Retrieves the body of this Message instance. |
|
GetBody<T>(XmlObjectSerializer) | Retrieves the body of this Message using the specified serializer. |
|
GetBodyAttribute | Retrieves the attributes of the message body. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetReaderAtBodyContents | Gets the XML dictionary reader that accesses the body content of this message. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
OnBeginWriteBodyContents | Raises an event when the message starts writing the contents of the message body. |
|
OnBeginWriteMessage | Raises an event the writing of entire messages starts. |
|
OnBodyToString | Called when the message body is converted to a string. |
|
OnClose | Called when the message is closing. |
|
OnCreateBufferedCopy | Called when a message buffer is created to store this message. |
|
OnEndWriteBodyContents | Raises an event when writing of the contents of the message body ends. |
|
OnEndWriteMessage | Raises an event when the writing of the entire message ends. |
|
OnGetBody<T> | Called when the body of the message is retrieved. |
|
OnGetBodyAttribute | Called when the attributes of the message body is retrieved. |
|
OnGetReaderAtBodyContents | Called when an XML dictionary reader that accesses the body content of this message is retrieved. |
|
OnWriteBodyContents | Called when the message body is written to an XML file. |
|
OnWriteMessage | Called when the entire message is written to an XML file. |
|
OnWriteStartBody | Called when the start body is written to an XML file. |
|
OnWriteStartEnvelope | Called when the start envelope is written to an XML file. |
|
OnWriteStartHeaders | Called when the start header is written to an XML file. |
|
ToString | Returns a string that represents the current Message instance. (Overrides Object.ToString().) |
|
WriteBody(XmlDictionaryWriter) | Writes the body element using the specified XmlDictionaryWriter. |
|
WriteBody(XmlWriter) | Serializes the message body using the specified XmlWriter. |
|
WriteBodyContents | Serializes the body content using the specified XmlDictionaryWriter. |
|
WriteMessage(XmlDictionaryWriter) | Serializes the entire message using the specified XmlDictionaryWriter. |
|
WriteMessage(XmlWriter) | Serializes the entire message using the specified XmlWriter. |
|
WriteStartBody(XmlDictionaryWriter) | Serializes the start body of the message using the specified XmlDictionaryWriter. |
|
WriteStartBody(XmlWriter) | Serializes the start body of the message using the specified XmlDictionaryWriter. |
|
WriteStartEnvelope | Serializes the start envelope using the specified XmlDictionaryWriter. |
| Name | Description | |
|---|---|---|
|
ToHttpRequestMessage | Creates a HttpRequestMessage instance from an Message instance. (Defined by MessageExtensionMethods.) |
|
ToHttpResponseMessage | Creates a HttpResponseMessage instance from an Message instance. (Defined by MessageExtensionMethods.) |
| Name | Description | |
|---|---|---|
|
IDisposable.Dispose | Closes all the resources used by this message. This method cannot be inherited. |