SoapYearMonth.ToString Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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}.",

.NET Framework
Available since 1.1
Return to top