MediaProtectionServiceCompletion MediaProtectionServiceCompletion MediaProtectionServiceCompletion MediaProtectionServiceCompletion Class

Definition

Contains a method that indicates whether a protection service has completed successfully.

public : sealed class MediaProtectionServiceCompletion : IMediaProtectionServiceCompletion
public sealed class MediaProtectionServiceCompletion : IMediaProtectionServiceCompletion
Public NotInheritable Class MediaProtectionServiceCompletion Implements IMediaProtectionServiceCompletion
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

To get an instance of this object, call either the ComponentLoadFailedEventArgs.Completion or ServiceRequestedEventArgs.Completion method.

Methods

Complete(Boolean) Complete(Boolean) Complete(Boolean) Complete(Boolean)

Indicates whether a protection service has completed successfully.

public : void Complete(bool success)
public void Complete(Boolean success)
Public Function Complete(success As Boolean) As void
mediaProtectionServiceCompletion.complete(success);
Parameters
success
bool Boolean Boolean Boolean

Indicates the successful completion of a protection service.

Remarks

This method completes the interaction with the service request or component load failure. It should only be called when an interaction with the service request object or handling of component load failures is completed. If this method is not called at that time the media playback system will be stalled indefinitely.