Share via


AppCapability.CreateWithProcessIdForUser(User, String, UInt32) Method

Definition

Creates an AppCapability object for the specified process and user.

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

Parameters

user
User

The user property for which the object was created.

capabilityName
String

Platform::String

winrt::hstring

The string property of CapabilityName.

pid
UInt32

unsigned int

uint32_t

The Process ID.

Returns

Returns the created instance.

Applies to