SoapQName.ToString Method

Definition

Returns the qualified name as a String.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

A String in the format " Key : Name ". If Key is not specified, this method returns Name.

Examples

The following code example shows how to use the ToString method. This code example is part of a larger example that is provided for the SoapQName class.

// Print the value of the SoapQName object in XSD format.
Console::WriteLine( L"The SoapQName object in XSD format is {0}.", qName );
// Print the value of the SoapQName object in XSD format.
Console.WriteLine(
    "The SoapQName object in XSD format is {0}.",
    qName.ToString());

Applies to