Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.