Share via


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)

Syntax

public GPPermission(
    string trustee,
    GPPermissionType rights,
    bool inheritable
)
public:
GPPermission(
    String^ trustee,
    GPPermissionType rights,
    bool inheritable
)
new : 
        trustee:string *
        rights:GPPermissionType *
        inheritable:bool -> GPPermission
Public Sub New (
    trustee As String,
    rights As GPPermissionType,
    inheritable As Boolean
)

Parameters

  • trustee
    Type: System.String

    The SID of the security principal (trustee) or its SAM account name; for example, Engineering\JSmith.

  • inheritable
    Type: System.Boolean

    true to specify that the permission can be inherited by a child container; otherwise, false.

See Also

GPPermission Overload
GPPermission Class
Microsoft.GroupPolicy Namespace

Return to top