IWSDInboundAttachment::Close method (wsdattachment.h)
Closes the current attachment MIME data stream.
Syntax
HRESULT Close();
Return value
This method can return one of these values.
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
Method completed successfully. |
Remarks
This method can be used to terminate the transfer of an incoming attachment while the transfer is in progress.
Usually, Close must be called before calling Release() on the IWSDInboundAttachment interface. The only time a Close call is not required is when Read returns S_FALSE, which indicates that the end of the attachment stream has been reached. In that case, simply call Release() on the IWSDInboundAttachment interface.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for