Closes the Message and releases any resources.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The Message does have a finalizer, which causes to be called for you when the message is garbage-collected. This is non-optimal, as the .NET Framework's Garbage Collection (GC) mechanism does not necessarily run when you run out of system resources other than memory. For this reason, you should always call this method when finished with the contents of the message. The method is a synonym for Dispose (which Message also implements). The message also disposes the object that was used to construct the body when it is disposed.
An ObjectDisposedException is thrown if you call any method or access any properties of the message once it is closed. Calling any method or accessing any properties of other objects related to the message once it is closed, (such as message header collection, message property values, or XmlReader instances returned for the body or for a header) has undefined behavior.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.