Share via


SoapYearMonth.Sign Propiedad

Definición

Obtiene o establece si la fecha y la hora de la instancia actual es positiva o negativa.

public:
 property int Sign { int get(); void set(int value); };
public int Sign { get; set; }
member this.Sign : int with get, set
Public Property Sign As Integer

Valor de propiedad

Entero que indica si Value es positivo o negativo.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar esta propiedad. Este ejemplo de código es parte de un ejemplo más grande proporcionado para la clase SoapYearMonth.

// Display the sign of the SoapYearMonth object.
Console::WriteLine( "The sign of the SoapYearMonth instance is {0}.",
   yearMonth->Sign );
// Display the sign of the SoapYearMonth object.
Console.WriteLine("The sign of the SoapYearMonth object is {0}.",
    yearMonth.Sign);

Comentarios

Un entero de menos de 0 indica un valor negativo Sign.

Se aplica a