SoapYearMonth.Sign Property

 

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

Namespace:   System.Runtime.Remoting.Metadata.W3cXsd2001
Assembly:  mscorlib (in mscorlib.dll)

public int Sign { get; set; }

Property Value

Type: System.Int32

An integer that indicates whether Value is positive or negative.

An integer of less than 0 indicates a negative Sign.

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 object is {0}.",
    yearMonth.Sign);

.NET Framework
Available since 1.1
Return to top
Show: