GlobalConfig2.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(bstrServiceName As String)

[C#]

using Microsoft.CommerceServer.Interop.Configuration;
…
public void DeleteServiceConfig(stringbstrServiceName);

Parameters

[Visual Basic .NET]

  • bstrServiceName
    A String that contains the name of the resource configuration object to be deleted.

[C#]

  • bstrServiceName
    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 GlobalConfig2 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

GlobalConfig2 Class

GlobalConfig2.CreateServiceConfig

Copyright © 2005 Microsoft Corporation.
All rights reserved.