IWMSCacheProxyServer.CancelDownloadContent (C#)
Previous | Next |
IWMSCacheProxyServer.CancelDownloadContent (C#)
The CancelDownloadContent method is called by the cache plug-in to stop the download process.
Syntax
Parameters
pArchiveContext
[in] IWMSContext object containing an archive context. This is the same context that the server passed to the plug-in when it called IWMSCacheProxyServerCallback.OnDownloadContentProgress.
pCallback
[in] IWMSCacheProxyServerCallback object containing the callback function. The server calls IWMSCacheProxyServerCallback.OnCancelDownloadContent to respond to the plug-in.
varContext
[in] object containing a value defined by the plug-in. For example, your plug-in can use this parameter to persist state information. The server does not alter this value and passes it back when calling IWMSCacheProxyServerCallback.OnCancelDownloadContent.
Return Values
This method does not return a value.
If this method fails, it throws an exception.
Number | Description |
0x8000FFFF | The archive has not been started or is already in the process of stopping. |
0x8007000E | The server could not allocate a command context. |
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.
See Also
Previous | Next |