TransactedRegistryKey.OpenSubKey Method (String, Boolean)

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 writable As Boolean
Dim returnValue As TransactedRegistryKey

returnValue = instance.OpenSubKey(name, writable)

public TransactedRegistryKey OpenSubKey (
	string name,
	bool writable
public TransactedRegistryKey OpenSubKey (
	String name, 
	boolean writable
public function OpenSubKey (
	name : String, 
	writable : boolean
) : TransactedRegistryKey



The name of the subkey to be opened.


Set to true if you need only read only 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