PropertyInformation.IsKey Egenskap

Definition

Hämtar ett värde som anger om konfigurationsattributet är en nyckel.

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

Egenskapsvärde

trueom konfigurationsattributet är en nyckel; annars . false

Exempel

Följande kodexempel visar hur du använder egenskapen IsKey . Det här kodexemplet är en del av ett större exempel för PropertyInformation klassen.

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

Gäller för