Share via


CreateSiteConfig Method

Creates an instance of SiteConfigFreeThreaded and writes configuration information for the specified site to the Administration database.

Namespace:  Microsoft.CommerceServer.Interop.Configuration
Assembly:  Microsoft.CommerceServer.Interop.Configuration.MSCSCfg (in Microsoft.CommerceServer.Interop.Configuration.MSCSCfg.dll)

Syntax

'Declaration
Public Function CreateSiteConfig ( _
    bstrSiteName As String _
) As SiteConfigFreeThreaded
'Usage
Dim instance As GlobalConfigFreeThreaded
Dim bstrSiteName As String
Dim returnValue As SiteConfigFreeThreaded

returnValue = instance.CreateSiteConfig(bstrSiteName)
public SiteConfigFreeThreaded CreateSiteConfig(
    string bstrSiteName
)
public:
virtual SiteConfigFreeThreaded^ CreateSiteConfig(
    String^ bstrSiteName
) sealed
public final function CreateSiteConfig(
    bstrSiteName : String
) : SiteConfigFreeThreaded

Parameters

Return Value

Type: Microsoft.CommerceServer.Interop.Configuration..::.SiteConfigFreeThreaded
A SiteConfigFreeThreaded object that contains the site configuration settings.

Implements

IGlobalConfig..::.CreateSiteConfig(String)

Remarks

Implements IGlobalConfig.CreateSiteConfig (CreateSiteConfig).

Use this method to create a site using the name specified in the bstrSiteName parameter. This method calls the SaveConfig method. This method is used primarily from Commerce Server Manager or by Commerce Server Site Packager. The correct ACLs are set on the entries in the Internet Information Services (IIS) metabase by Site Packager, to ensure that only site administrators can perform operations on the Admin objects.

The Initialize method must be called before this method can be called.

Permissions

See Also

Reference

GlobalConfigFreeThreaded Class

GlobalConfigFreeThreaded Members

Microsoft.CommerceServer.Interop.Configuration Namespace