GlobalConfig2.DeleteSiteConfig Method (PIA)

Use this method to delete a site configuration object instance for the current site from the Administration database. This method is primarily used by Commerce Server Manager or by Commerce Server Site Packager.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub DeleteSiteConfig(bstrSiteName As String)

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
…
public void DeleteSiteConfig(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 this method can be called.

[Visual Basic .NET]

Example

' sMySiteName is an existing site name
' oGlobalConfig is a Commerce GlobalConfig2 object
oGlobalConfig.DeleteSiteConfig(sMySiteName)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: CS_MSCSCfg (in cs_mscscfg.dll)

See Also

GlobalConfig2 Class

GlobalConfig2.CreateServiceConfig

Copyright © 2005 Microsoft Corporation.
All rights reserved.