SoapYearMonth.ToString メソッド

定義

ValueString として返します。

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

戻り値

String

String が負の場合に、書式 "yyyy-MM" または書式 "'-'yyyy-MM" で Value から取得した Sign

このメソッドを使用する方法を次のコード例に示します。 このコード例は、SoapYearMonth クラスで提供されている、より大きな例の一部です。

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

適用対象