SoapYear.Sign 属性

定义

获取或设置当前实例的日期和时间是正还是负。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

属性值

Int32

一个整数,指示 Value 是正还是负。An integer that indicates whether Value is positive or negative.

示例

下面的代码示例演示如何使用此属性。The following code example shows how to use this property. 此代码示例是为类提供的更大示例的一部分 SoapYearThis 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);

适用于