BodyWriter Class
Represents the writer of the message body.
Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The BodyWriter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | BodyWriter | Initializes a new instance of the BodyWriter class that explicitly indicates whether to buffer. |
| Name | Description | |
|---|---|---|
![]() ![]() | IsBuffered | Gets a value that indicates whether the write method can be called multiple times. |
| Name | Description | |
|---|---|---|
![]() | CreateBufferedCopy | Creates a buffered copy of the body. |
![]() ![]() | 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 the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnCreateBufferedCopy | Provides an extensibility point when the body contents are written. |
![]() ![]() | OnWriteBodyContents | When implemented, provides an extensibility point when the body contents are written. |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | WriteBodyContents | Writes out the contents of the message body. |
A message consists of headers and a body. The headers are buffered and the body is streamed. Because the body is streamed, the user cannot pass the actual content of the body to a message. Instead the user must pass a class that knows how to write the body when required to do so. This is done by passing a class derived from BodyWriter to the Message. A message calls the class derived from BodyWriter whenever it requires the body to be written using an XmlWriter.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.



