共用方式為


UserActivityRequestManager.GetForCurrentView 方法

定義

取得與目前檢視相關聯的 UserActivityRequestManager

public:
 static UserActivityRequestManager ^ GetForCurrentView();
 static UserActivityRequestManager GetForCurrentView();
public static UserActivityRequestManager GetForCurrentView();
function getForCurrentView()
Public Shared Function GetForCurrentView () As UserActivityRequestManager

傳回

目前檢視的 UserActivityRequestManager

範例

protected override void OnNavigatedTo(NavigationEventArgs e)
{
    Windows.ApplicationModel.UserActivities.UserActivityRequestManager requestMgr = Windows.ApplicationModel.UserActivities.UserActivityRequestManager.GetForCurrentView();
}

適用於