Freigeben über


PropertyInformation.IsKey Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob das Konfigurationsattribute ein Schlüssel ist.

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

Eigenschaftswert

truewenn das Konfigurationsattribute ein Schlüssel ist; andernfalls . false

Beispiele

Im folgenden Codebeispiel wird die Verwendung der IsKey Eigenschaft veranschaulicht. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die PropertyInformation Klasse bereitgestellt wird.

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

Gilt für: