Partager via


SoapDate.Sign Propriété

Définition

Obtient ou définit une valeur indiquant si la date et l'heure de l'instance actuelle sont positives ou négatives.

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

Valeur de propriété

Entier qui indique si Value est une valeur positive ou négative.

Exemples

L’exemple de code suivant montre comment utiliser cette propriété. Cet exemple de code fait partie d’un exemple plus grand fourni pour la SoapDate classe .

// Print out the sign of the SoapDate object.
Console::WriteLine( "The sign of the SoapDate instance is {0}.",
   date->Sign );
// Print the sign of the SoapDate object.
Console.WriteLine("The sign of the SoapDate object is {0}.",
    date.Sign);

Remarques

Un entier inférieur à zéro indique un négatif Sign.

S’applique à