GraphPathSerializationDictionary.Item Property
Gets or sets the element that has the specified key.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Default Property Item ( _
key As String _
) As String
public string this[
string key
] { get; set; }
public:
virtual property String^ default[String^ key] {
String^ get (String^ key) sealed;
void set (String^ key, String^ value) sealed;
}
abstract Item :
key:string -> string with get, set
override Item :
key:string -> string with get, set
JScript does not support indexed properties.
Parameters
key
Type: StringThe key of the element to obtain or set.
Property Value
Type: String
The element that has the specified key.
Implements
IDictionary.Item
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | key is null. |
KeyNotFoundException | The property is retrieved and key is not found. |
NotSupportedException | The property is set and the System.Collections.Generic.IDictionary is read only |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.