CollectionDataContractAttribute.KeyName 屬性

定義

取得或設定字典索引鍵名稱的自訂名稱。

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

屬性值

要用來代替預設字典索引鍵名稱的名稱。

適用於