ListManager.CancelOperation Method (PIA)

Use this method to cancel the specified ListManager operation.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Targeting
…
Public Sub CancelOperation(varOpID As Object)

[C#]

using Microsoft.CommerceServer.Interop.Targeting;
…
public void CancelOperation(objectvarOpID);

Parameters

[Visual Basic .NET]

  • varOpID
    An Object that specifies the Operation ID of the operation to be cancelled.

[C#]

  • varOpID
    An object that specifies the Operation ID of the operation to be cancelled.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

The following table shows the custom COM errors that a COMException can wrap.

Value Description
&H8C400004 The operation ID does not represent a currently running operation.
&H8C400003 Error while executing SQL/ADO operation.
&H80040007 The ListManager object has not been properly initialized.

[C#]

The following table shows the custom COM errors that a COMException can wrap.

Value Description
0x8C400004 The operation ID does not represent a currently running operation.
0x8C400003 Error while executing SQL/ADO operation.
0x80040007 The ListManager object has not been properly initialized.

Remarks

The Operation ID passed to this method in the varOpID parameter can be obtained from any of the following calls when they are executed asynchronously:

In addition, the Operation IDs of all known operations can be retrieved using the GetOperations method.

Requirements

Namespace: Microsoft.CommerceServer.Interop.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: listmanagerlib (in listmanagerlib.dll)

See Also

ListManager Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.