ToString Method

Message.ToString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a string that represents the current Message.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public override string ToString()

Return Value

Type: System.String
The current Message.

ExceptionCondition
ObjectDisposedException

The message has been disposed of.

Version Notes

Windows Phone

 . ToString() does not show XML version information in Windows Phone.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft