共用方式為


MediaBindingEventArgs.SetStorageFile(IStorageFile) 方法

定義

將儲存體檔案系結至與事件相關聯的 MediaSource

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)

參數

file
IStorageFile

包含媒體內容的 StorageFile

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於