共用方式為


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

進程識別碼。

傳回

傳回已建立的實例。

適用於