Share via


SPIisWebSite.ServerComment Property

Gets or sets the display name of the Internet Information Services (IIS) Web site.

Namespace:  Microsoft.SharePoint.AdministrationOperation
Assembly:  Microsoft.SharePoint.AdministrationOperation (in Microsoft.SharePoint.AdministrationOperation.dll)

Syntax

'Declaration
Public Property ServerComment As String
    Get
    Set
'Usage
Dim instance As SPIisWebSite
Dim value As String

value = instance.ServerComment

instance.ServerComment = value
public string ServerComment { get; set; }

Property Value

Type: System.String
A string that contains the display name of the IIS Web site.

Remarks

If a site already exists with the same value as in this property, a new site can still be created using this value because the site identification number is the property that makes the site unique.

For a code sample on how to display the current server name, then allow the user at the console to enter a new server name, see ServerComment.

See Also

Reference

SPIisWebSite Class

SPIisWebSite Members

Microsoft.SharePoint.AdministrationOperation Namespace