GlobalConfig.DeleteServiceConfig Method (PIA)

Use this method to delete the specified resource, and to delete the Administration database association that links this resource to the site instance.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub DeleteServiceConfig(bstrResourceName As String)

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
…
public void DeleteServiceConfig(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 configuration to be deleted.

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

' sMyPredictor is the name of an existing resource 
' oGlobalConfig is a Commerce GlobalConfig object
oGlobalConfig.DeleteServiceConfig (sMyPredictor)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Configuration

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_mscscfg (in cs_mscscfg.dll)

See Also

GlobalConfig****Class

GlobalConfig.CreateServiceConfig

Copyright © 2005 Microsoft Corporation.
All rights reserved.