SiteConfig.DeleteComponentConfig Method (PIA)
Use this method to delete the Administration database information for the specified resource.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub DeleteComponentConfig(bstrResourceName As String)
[C#]
using Microsoft.CommerceServer.Interop.Configuration;
…
public void DeleteComponentConfig(stringbstrResourceName);
Parameters
[Visual Basic .NET]
- bstrResourceName
A String that contains the name of the resource configuration object to be deleted.
[C#]
- bstrResourceName
A string that contains the name of the resource associated with the Administration database information to delete.
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 used.
This delete does not remove any resource-specific data other than the configuration information. For instance, deleting the Product Catalog resource will not remove the Product Catalog tables from the database, only the configuration information.
[Visual Basic .NET]
Example
' sMyResource is the name of an existing resource
' oSiteConfig is a Commerce SiteConfig object
oSiteConfig.DeleteComponentConfig (sMyResource)
Requirements
Namespace: Microsoft.CommerceServer.Interop.Configuration
Platforms: Windows 2000, Windows Server 2003
Assembly: cs_mscscfg (in cs_mscscfg.dll)
See Also
SiteConfig.CreateComponentConfig
Copyright © 2005 Microsoft Corporation.
All rights reserved.