Share via


SPVirtualServer.Port property

NOTE: This API is now obsolete.

Obsolete. Gets the port number for the virtual server.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public ReadOnly Property Port As Integer
    Get
'Usage
Dim instance As SPVirtualServer
Dim value As Integer

value = instance.Port
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", 
    false)]
public int Port { get; }

Property value

Type: System.Int32
A 32-bit integer that specifies the port number.

See also

Reference

SPVirtualServer class

SPVirtualServer members

Microsoft.SharePoint.Administration namespace