Gets the String key of the current dictionary entry.

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

Syntax

C#
string Key { get; }
Visual Basic
ReadOnly Property Key As String
	Get

Property Value

Type: String
The String key of the current element of the enumeration.

Remarks

Please refer to Key for details, but note that Key fails if the collection was modified since the last successful call to MoveNext()()()() or Reset()()()().

Exceptions

ExceptionCondition
System..::..InvalidOperationException

The enumerator is positioned before the first element of the dictionary or after the last element.

-or-

The dictionary was modified after the enumerator was created.

See Also