IWSDOutboundAttachment::Abort method (wsdattachment.h)

Aborts the transfer of data on the attachment MIME data stream. When Abort is called, any pending data may be discarded.

Syntax

HRESULT Abort();

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION)

Abort was called before Write was called. You must call Write before terminating the attachment stream.

Remarks

The Abort method may be called when a Close or Write method call failed with the error STG_S_BLOCK.

Close must not be called once Abort has been called on an attachment stream.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdattachment.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDOutboundAttachment

IWSDOutboundAttachment::Close

IWSDOutboundAttachment::Write