EntityMetadata.Keys EntityMetadata.Keys EntityMetadata.Keys 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; }
member this.Keys : Microsoft.Xrm.Sdk.Metadata.EntityKeyMetadata[]
Public ReadOnly Property Keys As EntityKeyMetadata()

Property Value

Type: EntityKeyMetadata[]An array of keys for an entity.

Remarks

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

Applies to