Gets or sets the String key in the key-and-value pair.

Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public string Key { get; set; }
Visual Basic
Public Property Key As String
	Get
	Set

Property Value

Type: String
The String key in the key-and-value pair. The default is a null reference.

Remarks

NameValueEntry is a value type and therefore has an implicit default constructor that zeroes all data members. This means that the Key property of a default-constructed NameValueEntry contains a null reference by default, even though it is not possible to explicitly set Key to a null reference.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionKey is set to a null reference.

See Also