CollectionDataContractAttribute.KeyName CollectionDataContractAttribute.KeyName CollectionDataContractAttribute.KeyName CollectionDataContractAttribute.KeyName Property

定義

取得或設定字典索引鍵名稱的自訂名稱。Gets or sets the custom name for a dictionary key name.

public:
 property System::String ^ KeyName { System::String ^ get(); void set(System::String ^ value); };
public string KeyName { get; set; }
member this.KeyName : string with get, set
Public Property KeyName As String

屬性值

要用來代替預設字典索引鍵名稱的名稱。The name to use instead of the default dictionary key name.

適用於