Partager via


Name Property

The Name property of the SPWebServer class gets the name of the Web server.

Property Value

A string that contains the name.

Example

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security