Port Property

The Port property of the SPSite class gets the port number used for input and output on the virtual server containing the site collection.

Property Value

A 32-bit integer that indicates the port number.

Example

The following code example displays the port number for the specified site collection in a console application.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security