다음을 통해 공유


SoapYearMonth.Sign 속성

정의

현재 인스턴스의 날짜와 시간이 양수인지 음수인지를 가져오거나 설정합니다.

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

속성 값

Value가 양수인지 음수인지를 나타내는 정수입니다.

예제

다음 코드 예제에는이 속성을 사용 하는 방법을 보여 줍니다. 이 코드 예제는 제공 된 큰 예제의 일부는 SoapYearMonth 클래스입니다.

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

설명

음수를 나타내는 0 보다 작은의 정수 Sign합니다.

적용 대상