IBinding::Abort

Permanently ends the bind operation.

HRESULT Abort(void);

Return Values

S_OK
The bind operation was successfully aborted.
S_FALSE
The bind operation was already aborted.
E_FAIL
The bind operation could not be aborted.

Remarks

When a bind operation is aborted, it calls IBindStatusCallback::OnStopBinding with a corresponding error code or failure of the IMoniker::BindToObject or the IMoniker::BindToStorage call in case this call did not previously return.

After aborting the bind operation, the client must still release any pointers obtained during the binding. No other IBindStatusCallback notifications will be called except IBindStatusCallback::OnStopBinding.

Note Releasing the last IBinding interface does not terminate the bind operation.

See Also

IBindStatusCallback::OnStopBinding