Share via


MediaClip.CreateFromFileAsync(IStorageFile) Method

Definition

Creates a video clip from a video file.

public:
 static IAsyncOperation<MediaClip ^> ^ CreateFromFileAsync(IStorageFile ^ file);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MediaClip> CreateFromFileAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MediaClip> CreateFromFileAsync(IStorageFile file);
function createFromFileAsync(file)
Public Shared Function CreateFromFileAsync (file As IStorageFile) As IAsyncOperation(Of MediaClip)

Parameters

file
IStorageFile

A StorageFile object representing the source video file.

Returns

A new media clip object containing a video clip of the video file.

Attributes

Applies to