Compartir a través de


SoapYearMonth.ToString Método

Definición

Devuelve Value como un String.

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

Devoluciones

String que se obtiene de Value con el formato "aaaa-MM" o "'-'aaaa-MM" si Sign es negativo.

Ejemplos

En el ejemplo de código siguiente se muestra la forma de utilizar este método. Este ejemplo de código es parte de un ejemplo más grande proporcionado para la clase 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());

Se aplica a