ObjectCol Cancel Method

Meta Data Services Programming

Meta Data Services Programming

ObjectCol Cancel Method

The Cancel method requests the cancellation of the ongoing load operation. This method only works when the ExecuteQuery method is used and you specify whether you want the resulting object collection to be loaded asynchronously. For other object collections, this method has no effect.

This method is not attached to the default interface for the repository Automation object; it is attached to the IObjectCol2 interface, which inherits from IObjectCol. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

object.Cancel

The Cancel method syntax has the following parts.

Part Description
object An object expression that evaluates to an ObjectCol object

See Also

IObjectCol2 Interface

ObjectCol Object

ObjectCol LoadStatus Method

Repository ExecuteQuery Method