Partager via


EntityMetadata.Keys Property

Definition

Gets an array of keys for an entity.

public:
 property cli::array <Microsoft::Xrm::Sdk::Metadata::EntityKeyMetadata ^> ^ Keys { cli::array <Microsoft::Xrm::Sdk::Metadata::EntityKeyMetadata ^> ^ get(); };
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[System.Runtime.Serialization.DataMember(Order=71)]
public Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata[] Keys { get; }
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")>]
[<System.Runtime.Serialization.DataMember(Order=71)>]
member this.Keys : Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata[]
Public ReadOnly Property Keys As EntityKeyMetadata()

Property Value

An array of keys for an entity.

Attributes

Remarks

When an entity has alternate keys defined, this property contains the definitions for those keys.

Applies to