Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | 
|---|---|
| 
 | Method completed successfully. | 
| 
 | 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 |