Partilhar via


SPVirtualServerCollection.Count Property

NOTE: This API is now obsolete.

Gets the number of virtual servers in the collection.

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 Overrides ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPVirtualServerCollection
Dim value As Integer

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

Property Value

Type: System.Int32
A 32-bit integer that indicates the number of virtual servers.

Implements

ICollection.Count

See Also

Reference

SPVirtualServerCollection Class

SPVirtualServerCollection Members

Microsoft.SharePoint.Administration Namespace