Click or drag to resize

LayoutMessageToXml Method

Returns the XML string representation of this LayoutMessage.

Namespace:  OBCOM.NetSwitchLib.Layouts
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public string ToXml(
	bool indent
)

Parameters

indent
Type: SystemBoolean
If true the XML string will have additional whitespace included to indent the XML tree.

Return Value

Type: String
The XML string representation of this LayoutMessage.
Remarks

As an example, consider a Layout named CONTACT with four fields called SERVICE, GROUP, USERNAME and USERCODE. The string returned by this method for a Message with layout CONTACT would be identical to the following indented XML tree:

<CONTACT>
    <SERVICE>service</SERVICE>
    <GROUP>group</GROUP>
    <USERNAME>user</USERNAME>
    <USERCODE>12345</USERCODE>
</CONTACT>
See Also