Edit

Share via


SoapYearMonth.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 SoapYearMonth class.

// 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);

Remarks

An integer of less than 0 indicates a negative Sign.

Applies to