Finishes working with the buffer.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
You should always close a MessageBuffer instance by calling when finished working with it. This ensures the underlying Message (the message passed into the constructor) is also closed, which frees system resources.
If you have called CreateBufferedCopy to create a message buffer of a message and inspected the message using CreateMessage, you get a InvalidOperationException when you attempt to close the buffer using this method. To avoid this problem, you must recreate the message from the buffer before closing. See the code sample in the Example section for a demonstration of the previous scenario and a way to resolve this problem.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.