Gets or sets the String key in the key-and-value pair.
Namespace: CodeSmith.CustomPropertiesAssembly: 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: StringThe 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | Key is set to a null reference. |