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();
}

适用于