Share via


SPVirtualServerCollection.Item property

NOTE: This API is now obsolete.

Gets the virtual server object at the specified index in the collection. In C#, this property is the indexer for the SPVirtualServerCollection class.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("The SPVirtualServerCollection class is deprecated.  Use an SPWebApplicationCollection instead.",  _
    False)> _
Public ReadOnly Property Item ( _
    index As Integer _
) As SPVirtualServer
    Get
'Usage
Dim instance As SPVirtualServerCollection
Dim index As Integer
Dim value As SPVirtualServer

value = instance.Item(index)
[ObsoleteAttribute("The SPVirtualServerCollection class is deprecated.  Use an SPWebApplicationCollection instead.", 
    false)]
public SPVirtualServer this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property value

Type: Microsoft.SharePoint.Administration.SPVirtualServer
An SPVirtualServer object that represents the virtual server.

See also

Reference

SPVirtualServerCollection class

SPVirtualServerCollection members

Microsoft.SharePoint.Administration namespace