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 GlobalConfig2FreeThreaded
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
- 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.
Implements
IGlobalConfig2..::.CreateSiteConfig(String)
Remarks
Implements IGlobalConfig2.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.
See Also
Reference
GlobalConfig2FreeThreaded Class