SPIisSettings.CreateFromExistingWebSite method

Creates an SPIisSettings object from an existing Internet Information Services (IIS) Web site on the local computer based on the specified server comment.

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

public static SPIisSettings CreateFromExistingWebSite(
	string serverComment


Type: System.String

A string that specifies the description for the IIS Web site.

Return value

Type: Microsoft.SharePoint.Administration.SPIisSettings
An SPIisSettings object that represents the IIS settings.