TransactedRegistryKey.OpenSubKey Method (String, RegistryKeyPermissionCheck)

Opens the specified subkey with the specified access. This method is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands.Internal
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As TransactedRegistryKey
Dim name As String
Dim permissionCheck As RegistryKeyPermissionCheck
Dim returnValue As TransactedRegistryKey

returnValue = instance.OpenSubKey(name, permissionCheck)

public TransactedRegistryKey OpenSubKey (
	string name,
	RegistryKeyPermissionCheck permissionCheck
/** @attribute ComVisibleAttribute(false) */ 
public TransactedRegistryKey OpenSubKey (
	String name, 
	RegistryKeyPermissionCheck permissionCheck
public function OpenSubKey (
	name : String, 
	permissionCheck : RegistryKeyPermissionCheck
) : TransactedRegistryKey



The name of the subkey to open.


One of the RegistryKeyPermissionCheck values that specifies whether the key is opened for read or read/write access.

Return Value

Returns a TransactedRegistryKey object that represents the opened subkey.

This topic is included in this SDK for completeness only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms