DictionaryCollectionBase<T, U>.Item Property
Gets or sets the object in the collection that has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Default Property Item ( _
name As String _
) As T
Get
Set
'Usage
Dim instance As DictionaryCollectionBase
Dim name As String
Dim value As T
value = instance(name)
instance(name) = value
public T this[
string name
] { get; set; }
public:
virtual property T default[String^ name] {
T get (String^ name) sealed;
void set (String^ name, T value) sealed;
}
abstract Item : 'T with get, set
override Item : 'T with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Type: System.String
The name of the object to find in the collection.
Property Value
Type: T
The object that has the specified name.