AppConfig.Initialize Method (PIA)
Use this method to initialize an AppConfig object.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub Initialize(bstrSiteName As String)
[C#]
using Microsoft.CommerceServer.Interop.Configuration;
…
void Initialize (
stringbstrSiteName);
Parameters
[Visual Basic .NET]
- bstrSiteName
A String that contains the name of the site with which this AppConfig object should be associated. This name is not case sensitive.
[C#]
- bstrSiteName
A string that contains the name of the site with which this AppConfig object should be associated. This name is not case sensitive.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
The AppConfig object must be initialized before any other method on this object can be used. The initialization usually happens only once in the Global.asax file immediately after the object is created.
[Visual Basic .NET]
Example
' oAppCfg is a Commerce.AppConfig object
oAppCfg.Initialize("Retail")
Requirements
Namespace: Microsoft.CommerceServer.Interop.Configuration
Platforms: Windows 2000, Windows Server 2003
Assembly: apphelperlib (in apphelperlib.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.