SoapYear.Sign Property

Definition

Gets or sets whether the date and time of the current instance is positive or negative.

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

Property Value

An integer that indicates whether Value is positive or negative.

Examples

The following code example shows how to use this property. This code example is part of a larger example that is provided for the SoapYear class.

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

Applies to