Message.GetXmlAsString
Method
Visual Basic
Overloads Public FunctionGetXmlAsString
(
ByVal fieldName As String)
Overloads Public FunctionGetXmlAsString
(
ByVal fieldName As String,
ByVal fieldId As UInt16)
Public FunctionGetXmlAsStringByIndex
(
ByVal fieldIndex As UInt32
) As String
C#
public StringGetXmlAsString
(
string fieldName);
public StringGetXmlAsString
(
string fieldName,
ushort fieldId);
public StringGetXmlAsStringByIndex
(
uint fieldIndex)
Purpose
Get an XML field from a message, and return its value as a string (without parsing to verify that it specifies a well-formed XML document).
Remarks
When Message.GetField gets the value of an XML field, it creates an XmlDocument data object; in the process, .NET parses the data to verify that it specifies well-formed XML. Because such parsing is occasionally inappropriate, this method gets an XML field, uncompresses its data, and returns it as a string—without parsing it.
The semantics of finding a field within a message are identical to the method Message.GetField; for a complete description, see Field Search Algorithm.
|
Get a field with this name. |
|
Get the field with this identifier. The constant |
|
Get the field with this index. Zero specifies the first field. See also Message.GetFieldByIndex. |