Share via


Id Property

The Id property of the SPWebServer class gets the GUID for the Web server.

Property Value

The GUID for the Web server.

Example

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security