Item(String) Property

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


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.


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.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security