MediaExtensionManager.RegisterSchemeHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterSchemeHandler(String, String) |
Registers a scheme handler for the specified URL scheme. |
RegisterSchemeHandler(String, String, IPropertySet) |
Registers a scheme handler for the specified URL scheme with an optional configuration parameter. |
RegisterSchemeHandler(String, String)
Registers a scheme handler for the specified URL scheme.
public:
virtual void RegisterSchemeHandler(Platform::String ^ activatableClassId, Platform::String ^ scheme) = RegisterSchemeHandler;
/// [Windows.Foundation.Metadata.Overload("RegisterSchemeHandler")]
void RegisterSchemeHandler(winrt::hstring const& activatableClassId, winrt::hstring const& scheme);
[Windows.Foundation.Metadata.Overload("RegisterSchemeHandler")]
public void RegisterSchemeHandler(string activatableClassId, string scheme);
function registerSchemeHandler(activatableClassId, scheme)
Public Sub RegisterSchemeHandler (activatableClassId As String, scheme As String)
Parameters
- activatableClassId
-
String
Platform::String
winrt::hstring
The class identifier of the activatable runtime class of the scheme handler. The runtime class must implement the IMediaExtension interface.
- scheme
-
String
Platform::String
winrt::hstring
The URL scheme that will be recognized to invoke the scheme handler. For example, "myscheme://".
- Attributes
See also
Applies to
RegisterSchemeHandler(String, String, IPropertySet)
Registers a scheme handler for the specified URL scheme with an optional configuration parameter.
public:
virtual void RegisterSchemeHandler(Platform::String ^ activatableClassId, Platform::String ^ scheme, IPropertySet ^ configuration) = RegisterSchemeHandler;
/// [Windows.Foundation.Metadata.Overload("RegisterSchemeHandlerWithSettings")]
void RegisterSchemeHandler(winrt::hstring const& activatableClassId, winrt::hstring const& scheme, IPropertySet const& configuration);
[Windows.Foundation.Metadata.Overload("RegisterSchemeHandlerWithSettings")]
public void RegisterSchemeHandler(string activatableClassId, string scheme, IPropertySet configuration);
function registerSchemeHandler(activatableClassId, scheme, configuration)
Public Sub RegisterSchemeHandler (activatableClassId As String, scheme As String, configuration As IPropertySet)
Parameters
- activatableClassId
-
String
Platform::String
winrt::hstring
The class identifier of the activatable runtime class of the scheme handler. The runtime class must implement the IMediaExtension interface.
- scheme
-
String
Platform::String
winrt::hstring
The URL scheme that will be recognized to invoke the scheme handler. For example, "myscheme://".
- configuration
- IPropertySet
An optional parameter that contains configuration properties for the scheme handler.
- Attributes