MediaBindingEventArgs.GetDeferral Method

Definition

Informs the system that the app might continue to perform work after the Binding event handler returns.

public:
 virtual Deferral ^ GetDeferral() = GetDeferral;
Deferral GetDeferral();
public Deferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As Deferral

Returns

The requested deferral.

Remarks

Since retrieving and binding the media content may take a significant amount of time, this should typically be performed asynchronously. Requesting a deferral lets the system know that your app is continuing to perform asynchronous work after the Binding event handler has returned. Call the Complete method when your binding operation is finished.

Subscribe to the Canceled event to be alerted by the system if the binding operation should be canceled.

Applies to