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

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

Remarks

An integer of less than zero indicates a negative Sign.

Applies to