JumpList.AddToRecentCategory JumpList.AddToRecentCategory JumpList.AddToRecentCategory JumpList.AddToRecentCategory Method

定义

将指定的项添加到跳转列表的“最近”类别中。Adds the specified item to the Recent category of the Jump List.

重载

AddToRecentCategory(String) AddToRecentCategory(String) AddToRecentCategory(String) AddToRecentCategory(String)

将指定的项路径添加到跳转列表的“最近”类别中。Adds the specified item path to the Recent category of the Jump List.

AddToRecentCategory(JumpPath) AddToRecentCategory(JumpPath) AddToRecentCategory(JumpPath)

将指定的跳转路径添加到跳转列表的“最近”类别中。Adds the specified jump path to the Recent category of the Jump List.

AddToRecentCategory(JumpTask) AddToRecentCategory(JumpTask) AddToRecentCategory(JumpTask)

将指定的跳转任务添加到跳转列表的“最近”类别中。Adds the specified jump task to the Recent category of the Jump List.

AddToRecentCategory(String) AddToRecentCategory(String) AddToRecentCategory(String) AddToRecentCategory(String)

将指定的项路径添加到跳转列表的“最近”类别中。Adds the specified item path to the Recent category of the Jump List.

public:
 static void AddToRecentCategory(System::String ^ itemPath);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (string itemPath);
static member AddToRecentCategory : string -> unit
Public Shared Sub AddToRecentCategory (itemPath As String)

参数

itemPath
String String String String

要添加到跳转列表中的路径。The path to add to the Jump List.

注解

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的ShowRecentCategory项, true请将属性设置为。To display recently used items in the Jump List, set the ShowRecentCategory property to true.

您可以调用AddToRecentCategory(String)方法来请求 Windows shell 将项路径添加到最近的项列表。You can call the AddToRecentCategory(String) method to request that the Windows shell add an item path to the Recent items list. 如果你的应用程序未注册为处理该项的文件类型,则它不会显示在 "最近" 列表中, AddToRecentCategory(String)并且对的调用将无提示地失败。If your application is not registered to handle the file type of the item, it will not appear in the Recent list and calls to AddToRecentCategory(String) will fail silently.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

另请参阅

AddToRecentCategory(JumpPath) AddToRecentCategory(JumpPath) AddToRecentCategory(JumpPath)

将指定的跳转路径添加到跳转列表的“最近”类别中。Adds the specified jump path to the Recent category of the Jump List.

public:
 static void AddToRecentCategory(System::Windows::Shell::JumpPath ^ jumpPath);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (System.Windows.Shell.JumpPath jumpPath);
static member AddToRecentCategory : System.Windows.Shell.JumpPath -> unit

参数

jumpPath
JumpPath JumpPath JumpPath JumpPath

要添加到跳转列表中的 JumpPathThe JumpPath to add to the Jump List.

注解

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的ShowRecentCategory项, true请将属性设置为。To display recently used items in the Jump List, set the ShowRecentCategory property to true.

您可以调用AddToRecentCategory(JumpPath)方法来请求 Windows shell 将指定的跳转路径添加到最近使用的项列表。You can call the AddToRecentCategory(JumpPath) method to request that the Windows shell add the specified jump path to the Recent items list. 如果你的应用程序未注册为处理该项的文件类型,则它不会显示在 "最近" 列表中, AddToRecentCategory(JumpPath)并且对的调用将无提示地失败。If your application is not registered to handle the file type of the item, it will not appear in the Recent list and calls to AddToRecentCategory(JumpPath) will fail silently.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

另请参阅

AddToRecentCategory(JumpTask) AddToRecentCategory(JumpTask) AddToRecentCategory(JumpTask)

将指定的跳转任务添加到跳转列表的“最近”类别中。Adds the specified jump task to the Recent category of the Jump List.

public:
 static void AddToRecentCategory(System::Windows::Shell::JumpTask ^ jumpTask);
[System.Security.SecurityCritical]
public static void AddToRecentCategory (System.Windows.Shell.JumpTask jumpTask);
static member AddToRecentCategory : System.Windows.Shell.JumpTask -> unit

参数

jumpTask
JumpTask JumpTask JumpTask JumpTask

要添加到跳转列表中的 JumpTaskThe JumpTask to add to the Jump List.

注解

最新类别的内容由 Windows shell 管理。The contents of the Recent category are managed by the Windows shell. 若要在跳转列表中显示最近使用过的ShowRecentCategory项, true请将属性设置为。To display recently used items in the Jump List, set the ShowRecentCategory property to true.

您可以调用AddToRecentCategory(JumpTask)方法来请求 Windows shell 将指定的跳转任务添加到 "最近使用的项" 列表中。You can call the AddToRecentCategory(JumpTask) method to request that the Windows shell add the specified jump task to the Recent items list.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

另请参阅

适用于