Partilhar 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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance(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