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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function CreateFromExistingWebSite ( _
serverComment As String _
) As SPIisSettings
'Usage
Dim serverComment As String
Dim returnValue As SPIisSettings
returnValue = SPIisSettings.CreateFromExistingWebSite(serverComment)
public static SPIisSettings CreateFromExistingWebSite(
string serverComment
)
Parameters
serverComment
Type: System.StringA 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.