Share via


AdminPortUrl Property

The AdminPortUrl property of the SPWebServer class gets the URL for the administration port of the Web server.

Property Value

An absolute URI that specifies the URL in the form http://Server_Name:Port_Number/.

Example

The following code example from a console application uses the AdminPortUrl property to display the administrative port URL of each Web server in the Microsoft Windows SharePoint Services deployment.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security