GPPermission Constructor (String, GPPermissionType, Boolean)

Initializes a new instance of the GPPermission class, by using the specified security principal name.

Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in microsoft.grouppolicy.management.dll)

Usage

    Dim trustee As String
Dim rights As GPPermissionType
Dim inheritable As Boolean

Dim instance As New GPPermission(trustee, rights, inheritable)

Syntax

'Declaration
Public Sub New ( _
    trustee As String, _
    rights As GPPermissionType, _
    inheritable As Boolean _
)
public GPPermission (
    string trustee,
    GPPermissionType rights,
    bool inheritable
)
public:
GPPermission (
    String^ trustee, 
    GPPermissionType rights, 
    bool inheritable
)
public GPPermission (
    String trustee, 
    GPPermissionType rights, 
    boolean inheritable
)
public function GPPermission (
    trustee : String, 
    rights : GPPermissionType, 
    inheritable : boolean
)

Parameters

  • trustee
    The SID of the security principal (trustee) or its SAM account name; for example, Engineering\JSmith.
  • rights
    One of the GPPermissionType enumeration values that specifies the policy-related permission level.
  • inheritable
    true to specify that the permission can be inherited by a child container; otherwise, false.

Platforms

Development Platforms

Windows Server 2008 R2

Target Platforms

Windows Server 2008 R2

See Also

Reference

GPPermission Class
GPPermission Members
Microsoft.GroupPolicy Namespace