SoapYearMonth.ToString メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As 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());