MediaSource.CreateFromStorageFile(IStorageFile) MediaSource.CreateFromStorageFile(IStorageFile) MediaSource.CreateFromStorageFile(IStorageFile) MediaSource.CreateFromStorageFile(IStorageFile) MediaSource.CreateFromStorageFile(IStorageFile) Method

Definition

Creates an instance of MediaSource from the provided IStorageFile.

public : static MediaSource CreateFromStorageFile(IStorageFile file)
static MediaSource CreateFromStorageFile(IStorageFile file) const;
public static MediaSource CreateFromStorageFile(IStorageFile file)
Public Shared Function CreateFromStorageFile(file As IStorageFile) As MediaSource
var mediaSource = Windows.Media.Core.MediaSource.createFromStorageFile(file);

Parameters

file
IStorageFile IStorageFile IStorageFile

The IStorageFile from which the MediaSource is created.

Returns