SoapYearMonth.Sign Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.