SetAclWrapperSetOwnership Method
Takes ownership of a registry key.
Namespace: DevCase.ThirdParty.SetAclAssembly: 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 SetOwnership(
string regKey,
bool recursive,
string userName = ""
)
Public Function SetOwnership (
regKey As String,
recursive As Boolean,
Optional userName As String = ""
) As Integer
Dim instance As SetAclWrapper
Dim regKey As String
Dim recursive As Boolean
Dim userName As String
Dim returnValue As Integer
returnValue = instance.SetOwnership(regKey,
recursive, userName)
public:
int SetOwnership(
String^ regKey,
bool recursive,
String^ userName = L""
)
member SetOwnership :
regKey : string *
recursive : bool *
?userName : string
(* Defaults:
let _userName = defaultArg userName ""
*)
-> int
No code example is currently available or this language may not be supported.
- regKey String
-
The registry key.
- recursive Boolean
-
A value indicating whether to set ownership on all sub-keys.
- userName String (Optional)
-
The account username.
Int32
The process exit code.
Note: Some functionalities of this assembly may require to install one or all of the listed applications:
SetAcl (setacl.exe)