次の方法で共有


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)

適用対象