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.StringThe SID of the security principal (trustee) or its SAM account name; for example, Engineering\JSmith.
rights
Type: Microsoft.GroupPolicy.GPPermissionTypeOne of the GPPermissionType enumeration values that specifies the policy-related permission level.
inheritable
Type: System.Booleantrue 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