GlobalConfig.CreateSiteConfig

Ee824727.c++_on(en-US,CS.10).gifEe824727.vb_off(en-US,CS.10).gif

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 IIS metabase by the Commerce Server Site Packager, to ensure that the Admin objects can only be operated on by site administrators.

Definition

Function CreateSiteConfig(bstrSiteName As String) As Object

Parameters

bstrSiteName

A String that contains the new site name.

Return Values

If this method completes successfully, it returns a SiteConfig object that contains the site configuration settings.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

All ADO, SQL, and ODBC errors will also be returned by this method.

Remarks

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

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' sMyNewSite is a string; oGlobalConfig is a Commerce GlobalConfig object
' oMSCSSiteConfig is a Commerce.SiteConfig object
oMSCSSiteConfig = oGlobalConfig.CreateSiteConfig(sMyNewSite)

See Also

GlobalConfig****Object

_GlobalConfig::DeleteSiteConfig


All rights reserved.