Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AdminPort property of the SPWebServer class gets the administration port number for the Web server.
Property Value
A 32-bit integer that specifies the port number.
Example
The following code example from a console application uses the AdminPort property to display the administrative port number of each Web server in the Microsoft Windows SharePoint Services deployment.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security