SiteConfig.Initialize Method (PIA)
Use this method to load the site configuration from the Administration database.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub Initialize(bstrSiteName As String)
[C#]
using Microsoft.CommerceServer.Interop.Configuration;
…
public void Initialize(stringbstrSiteName);
Parameters
[Visual Basic .NET]
- bstrSiteName
A String that contains the site name.
[C#]
- bstrSiteName
A string that contains the site name.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
[Visual Basic .NET]
Example
' sMySiteName is a string
' oSiteConfig is a Commerce SiteConfig object
oSiteConfig.Initialize(sMySiteName)
Requirements
Namespace: Microsoft.CommerceServer.Interop.Configuration
Platforms: Windows 2000, Windows Server 2003
Assembly: cs_mscscfg (in cs_mscscfg.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.