SoapQName.ToString 方法

定义

String 的形式返回限定名。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

返回

String

String : Key”格式的 NameA String in the format " Key : Name ". 如果未指定 Key,此方法将返回 NameIf Key is not specified, this method returns Name.

示例

下面的代码示例说明如何使用 ToString 方法。The following code example shows how to use the ToString method. 此代码示例是为类提供的更大示例的一部分 SoapQNameThis 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());

适用于