SetAclWrapperSetPermission Method

Takes ownership of a registry key.

Definition

Namespace: DevCase.ThirdParty.SetAcl
Assembly: DevCase.net48.ThirdParty.SetAcl (in DevCase.net48.ThirdParty.SetAcl.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public int SetPermission(
	string regKey,
	bool recursive,
	SetAclPermission permission,
	string userName = ""
)

Parameters

regKey  String
The registry key.
recursive  Boolean
A value indicating whether to set ownership on all sub-keys.
permission  SetAclPermission
The permission to set.
userName  String  (Optional)
The account username.

Return Value

Int32
The process exit code.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed applications:

SetAcl (setacl.exe)

See Also