OnGetBodyAttribute Method

Message.OnGetBodyAttribute Method

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

Called when the attributes of the message body is retrieved.

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

protected virtual string OnGetBodyAttribute(
	string localName,
	string ns
)

Parameters

localName
Type: System.String
The local name of the XML node.
The name of the element that corresponds to this member. This string must be a valid XML element name.
ns
Type: System.String
The namespace to which this XML element belongs.
The namespace URI of the element that corresponds to this member. The system does not validate any URIs other than transport addresses.

Return Value

Type: System.String
The attributes of the message body.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft