TransactedRegistryKey.OpenSubKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenSubKey(String) |
Retrieves a subkey for readonly access. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, RegistryKeyPermissionCheck) |
Retrieves a subkey. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, Boolean) |
Retrieves a subkey. If readonly is true, then the subkey is opened with read-only access. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights) |
Retrieves a subkey. Utilizes Transaction.Current for its transaction. |
OpenSubKey(String)
Retrieves a subkey for readonly access. Utilizes Transaction.Current for its transaction.
public:
Microsoft::PowerShell::Commands::Internal::TransactedRegistryKey ^ OpenSubKey(System::String ^ name);
public Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey OpenSubKey (string name);
member this.OpenSubKey : string -> Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey
Public Function OpenSubKey (name As String) As TransactedRegistryKey
Parameters
- name
- String
Returns
Applies to
OpenSubKey(String, RegistryKeyPermissionCheck)
Retrieves a subkey. Utilizes Transaction.Current for its transaction.
public:
Microsoft::PowerShell::Commands::Internal::TransactedRegistryKey ^ OpenSubKey(System::String ^ name, Microsoft::Win32::RegistryKeyPermissionCheck permissionCheck);
[System.Runtime.InteropServices.ComVisible(false)]
public Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey OpenSubKey (string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck);
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.OpenSubKey : string * Microsoft.Win32.RegistryKeyPermissionCheck -> Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey
Public Function OpenSubKey (name As String, permissionCheck As RegistryKeyPermissionCheck) As TransactedRegistryKey
Parameters
- name
- String
- permissionCheck
- RegistryKeyPermissionCheck
Returns
- Attributes
Applies to
OpenSubKey(String, Boolean)
Retrieves a subkey. If readonly is true, then the subkey is opened with read-only access. Utilizes Transaction.Current for its transaction.
public:
Microsoft::PowerShell::Commands::Internal::TransactedRegistryKey ^ OpenSubKey(System::String ^ name, bool writable);
public Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey OpenSubKey (string name, bool writable);
member this.OpenSubKey : string * bool -> Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey
Public Function OpenSubKey (name As String, writable As Boolean) As TransactedRegistryKey
Parameters
- name
- String
- writable
- Boolean
Returns
Applies to
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights)
Retrieves a subkey. Utilizes Transaction.Current for its transaction.
public:
Microsoft::PowerShell::Commands::Internal::TransactedRegistryKey ^ OpenSubKey(System::String ^ name, Microsoft::Win32::RegistryKeyPermissionCheck permissionCheck, System::Security::AccessControl::RegistryRights rights);
[System.Runtime.InteropServices.ComVisible(false)]
public Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey OpenSubKey (string name, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistryRights rights);
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.OpenSubKey : string * Microsoft.Win32.RegistryKeyPermissionCheck * System.Security.AccessControl.RegistryRights -> Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey
Public Function OpenSubKey (name As String, permissionCheck As RegistryKeyPermissionCheck, rights As RegistryRights) As TransactedRegistryKey
Parameters
- name
- String
- permissionCheck
- RegistryKeyPermissionCheck
- rights
- RegistryRights
Returns
- Attributes