SoapYearMonth.ToString Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a Value as a String.

Namespace:   System.Runtime.Remoting.Metadata.W3cXsd2001
Assembly:  mscorlib (in mscorlib.dll)

public override string ToString()

Return Value

Type: System.String

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

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.ToString());

.NET Framework
Available since 1.1
Return to top
Show: