Dela via


SecurityUtilities.ComputeZonePermissionSet Method

Definition

Generates a permission set by computed the zone default permission set and adding any included permissions.

public:
 static System::Security::PermissionSet ^ ComputeZonePermissionSet(System::String ^ targetZone, System::Security::PermissionSet ^ includedPermissionSet, cli::array <System::String ^> ^ excludedPermissions);
public static System.Security.PermissionSet ComputeZonePermissionSet (string targetZone, System.Security.PermissionSet includedPermissionSet, string[] excludedPermissions);
static member ComputeZonePermissionSet : string * System.Security.PermissionSet * string[] -> System.Security.PermissionSet
Public Shared Function ComputeZonePermissionSet (targetZone As String, includedPermissionSet As PermissionSet, excludedPermissions As String()) As PermissionSet

Parameters

targetZone
String

Specifies a zone default permission set, which is obtained from machine policy. Valid values are "Internet", "LocalIntranet", or "Custom". If "Custom" is specified, the generated permission set is based only on the includedPermissionSet parameter.

includedPermissionSet
PermissionSet

A PermissionSet object containing the set of permissions to be explicitly included in the generated permission set. Permissions specified in this parameter will be included verbatim in the generated permission set, regardless of targetZone parameter.

excludedPermissions
String[]

This property is no longer used.

Returns

The generated permission set.

Applies to