SoapTime.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 获取的“HH:mm:ss.fffzzz”格式的 ValueA String that is obtained from Value in the format "HH:mm:ss.fffzzz".

示例

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

// Display the time in XSD format. 
Console::WriteLine( "The time in XSD format is {0}.",
   time );
// Display the time in XSD format.
Console.WriteLine("The time in XSD format is {0}.",
    time.ToString());

适用于