SecurityDescriptorHelpers.GetSecurityDescriptorBytesFromAppContainerNames Method

Definition

Gets the security descriptor for the specified Package Family Names (PFNs).

public:
 static Platform::Array <byte> ^ GetSecurityDescriptorBytesFromAppContainerNames(Platform::Array <AppContainerNameAndAccess> ^ accessRequests, Platform::String ^ principalStringSid, unsigned int principalAccessMask);
 static winrt::array_view <byte> GetSecurityDescriptorBytesFromAppContainerNames(winrt::array_view <AppContainerNameAndAccess> const& accessRequests, winrt::hstring const& principalStringSid, uint32_t const& principalAccessMask);
public static byte[] GetSecurityDescriptorBytesFromAppContainerNames(AppContainerNameAndAccess[] accessRequests, string principalStringSid, uint principalAccessMask);
function getSecurityDescriptorBytesFromAppContainerNames(accessRequests, principalStringSid, principalAccessMask)
Public Shared Function GetSecurityDescriptorBytesFromAppContainerNames (accessRequests As AppContainerNameAndAccess(), principalStringSid As String, principalAccessMask As UInteger) As Byte()

Parameters

accessRequests
AppContainerNameAndAccess[]

An array of AppContainerNameAndAccess structs that specify the PFNs and access rights.

principalStringSid
String

Platform::String

winrt::hstring

The security identifier (SID) of the principal. This parameter is optional and can be null.

principalAccessMask
UInt32

unsigned int

uint32_t

The access rights for the principal.

Returns

Byte[]

byte[]

Returns the security descriptor as a byte array.

Remarks

If the principalStringSid parameter is null, the principal of the current thread is used.

Applies to

See also