Gets or sets the String value associated with the specified String key.

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

Syntax

C#
string this[
	string key
] { get; set; }
Visual Basic
Default Property Item ( 
	key As String
) As String
	Get
	Set

Parameters

key
Type: System..::..String
The String key whose value to get or set.

Property Value

Type: String
The String value associated with the specified key. If the specified key is not found, attempting to get it returns a null reference, and attempting to set it creates a new element using the specified key.

Remarks

Please refer to Item[([( Object])]) for details.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionkey is a null reference.
System..::..NotSupportedException

The property is set and the IStringStringDictionary is read-only.

-or-

The property is set, key does not exist in the collection, and the IStringStringDictionary has a fixed size.

See Also