Item(String) Property

The Item property of the ServiceCollection class gets a Service object from the collection with the specified instance name.

Parameters

instance    A String that contains the instance name of the Service object.

Property Value

The Microsoft.SharePoint.Portal.Topology.Service instance identified by the instance argument.

Remarks

Some Service objects, such as the DatabaseService object, support multiple named instances of the Service object on a single server computer. This overloaded version of the Item property returns a Service object identified by its instance name.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security