다음을 통해 공유


PropertyInformation.IsKey 속성

정의

구성 특성이 키인지 여부를 지정하는 값을 가져옵니다.

public:
 property bool IsKey { bool get(); };
public bool IsKey { get; }
member this.IsKey : bool
Public ReadOnly Property IsKey As Boolean

속성 값

true구성 특성이 키이면 이고, 그렇지 않으면 . false

예제

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

// Display the IsKey property.
Console.WriteLine("IsKey: {0}", propertyItem.IsKey);
' Display the IsKey property.
Console.WriteLine("IsKey: {0}", propertyItem.IsKey)

적용 대상