Share via


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)

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.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.

See also

Reference

SPIisSettings class

SPIisSettings members

Microsoft.SharePoint.Administration namespace