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.String

    The 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.

See also

Reference

BaseInfoCollection<T> class

BaseInfoCollection<T> members

Microsoft.Office.Server.Search.Administration namespace