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
Function CreateSiteConfig ( _
bstrSiteName As String _
) As SiteConfigFreeThreaded
'Usage
Dim instance As IGlobalConfig
Dim bstrSiteName As String
Dim returnValue As SiteConfigFreeThreaded
returnValue = instance.CreateSiteConfig(bstrSiteName)
SiteConfigFreeThreaded CreateSiteConfig(
string bstrSiteName
)
SiteConfigFreeThreaded^ CreateSiteConfig(
String^ bstrSiteName
)
function CreateSiteConfig(
bstrSiteName : String
) : SiteConfigFreeThreaded
Parameters
- bstrSiteName
Type: System..::.String
The new name for the site.
Return Value
Type: Microsoft.CommerceServer.Interop.Configuration..::.SiteConfigFreeThreaded
A SiteConfigFreeThreaded object that contains the site configuration settings.
Remarks
Implemented by GlobalConfigFreeThreaded.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.