MediaProtectionServiceCompletion
MediaProtectionServiceCompletion
MediaProtectionServiceCompletion
MediaProtectionServiceCompletion
Class
Definition
Contains a method that indicates whether a protection service has completed successfully.
public : sealed class MediaProtectionServiceCompletion : IMediaProtectionServiceCompletionpublic sealed class MediaProtectionServiceCompletion : IMediaProtectionServiceCompletionPublic NotInheritable Class MediaProtectionServiceCompletion Implements IMediaProtectionServiceCompletion// You can use this class in JavaScript.
- 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// You can use this method in JavaScript.
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.