AppCapability.CreateWithProcessIdForUser(User, String, UInt32) 方法

定义

为指定的进程和用户创建 AppCapability 对象。

public:
 static AppCapability ^ CreateWithProcessIdForUser(User ^ user, Platform::String ^ capabilityName, unsigned int pid);
 static AppCapability CreateWithProcessIdForUser(User const& user, winrt::hstring const& capabilityName, uint32_t const& pid);
public static AppCapability CreateWithProcessIdForUser(User user, string capabilityName, uint pid);
function createWithProcessIdForUser(user, capabilityName, pid)
Public Shared Function CreateWithProcessIdForUser (user As User, capabilityName As String, pid As UInteger) As AppCapability

参数

user
User

为其创建对象的用户属性。

capabilityName
String

Platform::String

winrt::hstring

CapabilityName 的字符串属性。

pid
UInt32

unsigned int

uint32_t

进程 ID。

返回

返回创建的实例。

适用于