BaseInfoCollection<T>.Item property
Gets the object with the given name in this collection.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As T
Get
'Usage
Dim instance As BaseInfoCollection
Dim name As String
Dim value As T
value = instance(name)
public T this[
string name
] { get; }
Parameters
name
Type: System.StringThe name of the object to locate in this collection.
Property value
Type: T
The object in this collection with the given name.
Exceptions
Exception | Condition |
---|---|
KeyNotFoundException | If an object with the given name is not found. |