Edit

Share via


CollectionDataContractAttribute.KeyName Property

Definition

Gets or sets the custom name for a dictionary key name.

C#
public string KeyName { get; set; }
C#
public string? KeyName { get; set; }

Property Value

The name to use instead of the default dictionary key name.

Applies to

Product Versions