SiteConfigReadOnly.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;
…
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.

Remarks

The Initialize method must be called before the object can be used.

[Visual Basic .NET]

Example

' sMySiteName is a string
' oSiteConfigReadOnly is a Commerce SiteConfigReadOnly object
oSiteConfigReadOnly.Initialize(sMySiteName)

See Also

SiteConfigReadOnly Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.