SoapYearMonth.ToString Method

Definition

Returns a Value as a String.

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

Returns

A String that is obtained from Value in the format "yyyy-MM" or "'-'yyyy-MM" if Sign is negative.

Examples

The following code example shows how to use this method. This code example is part of a larger example that is provided for the SoapYearMonth class.

// 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());

Applies to