SoapAnyUri.ToString 方法

定义

返回 Value 作为 StringReturns Value 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 中获取 ValueA String that is obtained from Value.

示例

下面的代码示例说明如何使用 ToString 方法。The following code example shows how to use the ToString method. 此代码示例是为类提供的更大示例的一部分 SoapAnyUriThis code example is part of a larger example that is provided for the SoapAnyUri class.

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

适用于