SecurityUtilities.ComputeZonePermissionSet Method
Generates a permission set by computing the zone default permission set, removing any excluded permissions, and adding any included permissions.
MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly: Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)
Syntax
'Declaration
Public Shared Function ComputeZonePermissionSet ( _
targetZone As String, _
includedPermissionSet As PermissionSet, _
excludedPermissions As String() _
) As PermissionSet
public static PermissionSet ComputeZonePermissionSet(
string targetZone,
PermissionSet includedPermissionSet,
string[] excludedPermissions
)
public:
static PermissionSet^ ComputeZonePermissionSet(
String^ targetZone,
PermissionSet^ includedPermissionSet,
array<String^>^ excludedPermissions
)
static member ComputeZonePermissionSet :
targetZone:string *
includedPermissionSet:PermissionSet *
excludedPermissions:string[] -> PermissionSet
public static function ComputeZonePermissionSet(
targetZone : String,
includedPermissionSet : PermissionSet,
excludedPermissions : String[]
) : PermissionSet
Parameters
targetZone
Type: System.StringSpecifies 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
Type: PermissionSetA 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 or excludedPermissions parameters.
excludedPermissions
Type: array<System.String[]An array of permission identity strings to be excluded from the zone default permission set. Permission identity strings can be computed using the PermissionSetToIdentityList method. This parameter is ignored if targetZone is not Internet or LocalIntranet.
Return Value
Type: PermissionSet
Returns the generated permission set.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.
See Also
Reference
Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace