Share via


JumpListItem.CreateWithArguments(String, String) 方法

定义

为应用的跳转列表创建新的跳转列表项。

public:
 static JumpListItem ^ CreateWithArguments(Platform::String ^ arguments, Platform::String ^ displayName);
 static JumpListItem CreateWithArguments(winrt::hstring const& arguments, winrt::hstring const& displayName);
public static JumpListItem CreateWithArguments(string arguments, string displayName);
function createWithArguments(arguments, displayName)
Public Shared Function CreateWithArguments (arguments As String, displayName As String) As JumpListItem

参数

arguments
String

Platform::String

winrt::hstring

指定在用户选择跳转列表项时应传递到应用的任何命令行参数的字符串。

displayName
String

Platform::String

winrt::hstring

指定跳转列表项的显示名称的字符串。 如果需要本地化,此字符串必须是 ms-resource: 方案指定的 URI。

返回

具有指定参数的跳转列表项,可通过 items 属性添加到应用的跳转列表。

适用于