Share via


MediaBindingEventArgs.SetStorageFile(IStorageFile) Method

Definition

Binds a storage file to the MediaSource associated with the event.

public:
 virtual void SetStorageFile(IStorageFile ^ file) = SetStorageFile;
void SetStorageFile(IStorageFile const& file);
public void SetStorageFile(IStorageFile file);
function setStorageFile(file)
Public Sub SetStorageFile (file As IStorageFile)

Parameters

file
IStorageFile

The StorageFile containing media content.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to