Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
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.
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: StringThe 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
Exception | Condition |
---|---|
System..::..ArgumentNullException | key 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. |