MediaExtensionManager.RegisterByteStreamHandler 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
RegisterByteStreamHandler(String, String, String) |
Registers a byte-stream handler by file name extension and MIME type. |
RegisterByteStreamHandler(String, String, String, IPropertySet) |
Registers a byte-stream handler by file name extension and MIME type, with an optional configuration parameter. |
RegisterByteStreamHandler(String, String, String)
Registers a byte-stream handler by file name extension and MIME type.
public:
virtual void RegisterByteStreamHandler(Platform::String ^ activatableClassId, Platform::String ^ fileExtension, Platform::String ^ mimeType) = RegisterByteStreamHandler;
/// [Windows.Foundation.Metadata.Overload("RegisterByteStreamHandler")]
void RegisterByteStreamHandler(winrt::hstring const& activatableClassId, winrt::hstring const& fileExtension, winrt::hstring const& mimeType);
[Windows.Foundation.Metadata.Overload("RegisterByteStreamHandler")]
public void RegisterByteStreamHandler(string activatableClassId, string fileExtension, string mimeType);
function registerByteStreamHandler(activatableClassId, fileExtension, mimeType)
Public Sub RegisterByteStreamHandler (activatableClassId As String, fileExtension As String, mimeType As String)
Parameters
- activatableClassId
-
String
Platform::String
winrt::hstring
The class identifier of the activatable runtime class of the byte-stream handler. The runtime class must implement the IMediaExtension interface.
- fileExtension
-
String
Platform::String
winrt::hstring
The file name extension that is registered for this byte-stream handler.
- mimeType
-
String
Platform::String
winrt::hstring
The MIME type that is registered for this byte-stream handler.
- Attributes
See also
Applies to
RegisterByteStreamHandler(String, String, String, IPropertySet)
Registers a byte-stream handler by file name extension and MIME type, with an optional configuration parameter.
public:
virtual void RegisterByteStreamHandler(Platform::String ^ activatableClassId, Platform::String ^ fileExtension, Platform::String ^ mimeType, IPropertySet ^ configuration) = RegisterByteStreamHandler;
/// [Windows.Foundation.Metadata.Overload("RegisterByteStreamHandlerWithSettings")]
void RegisterByteStreamHandler(winrt::hstring const& activatableClassId, winrt::hstring const& fileExtension, winrt::hstring const& mimeType, IPropertySet const& configuration);
[Windows.Foundation.Metadata.Overload("RegisterByteStreamHandlerWithSettings")]
public void RegisterByteStreamHandler(string activatableClassId, string fileExtension, string mimeType, IPropertySet configuration);
function registerByteStreamHandler(activatableClassId, fileExtension, mimeType, configuration)
Public Sub RegisterByteStreamHandler (activatableClassId As String, fileExtension As String, mimeType As String, configuration As IPropertySet)
Parameters
- activatableClassId
-
String
Platform::String
winrt::hstring
The class identifier of the activatable runtime class of the byte-stream handler. The runtime class must implement the IMediaExtension interface.
- fileExtension
-
String
Platform::String
winrt::hstring
The file name extension that is registered for this byte-stream handler.
- mimeType
-
String
Platform::String
winrt::hstring
The MIME type that is registered for this byte-stream handler.
- configuration
- IPropertySet
An optional parameter that contains configuration properties for the byte-stream handler.
- Attributes