ISmoothStreamingCache.BeginRetrieve Method
Begins an asynchronous cache response retrieval.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Function BeginRetrieve ( _
request As CacheRequest, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As ISmoothStreamingCache
Dim request As CacheRequest
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginRetrieve(request, _
callback, state)
IAsyncResult BeginRetrieve(
CacheRequest request,
AsyncCallback callback,
Object state
)
IAsyncResult^ BeginRetrieve(
CacheRequest^ request,
AsyncCallback^ callback,
Object^ state
)
abstract BeginRetrieve :
request:CacheRequest *
callback:AsyncCallback *
state:Object -> IAsyncResult
function BeginRetrieve(
request : CacheRequest,
callback : AsyncCallback,
state : Object
) : IAsyncResult
Parameters
- request
Type: Microsoft.Web.Media.SmoothStreaming.CacheRequest
A CacheRequest object that describes the request being made.
- callback
Type: System.AsyncCallback
A AsyncCallback delegate method to complete the operation.
- state
Type: System.Object
A Object that represents state for the request.
Return Value
Type: System.IAsyncResult
An IAsyncResult object.
Examples
The following code shows an implementation of the BeginRetrieve(CacheRequest, AsyncCallback, Object) method.
public IAsyncResult BeginRetrieve(CacheRequest request, AsyncCallback callback, object state)
{
CacheResponse response = null;
CacheAsyncResult ar = new CacheAsyncResult();
ar.strUrl = request.CanonicalUri.ToString();
ar.Complete(response, true);
return ar;
}
Version Information
Silverlight
Supported in: 5
Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0