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
S_OK
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

IWSDInboundAttachment