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)

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

returnValue = instance.OpenSubKey(name, permissionCheck)

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

Parameters

name

The name of the subkey to open.

permissionCheck

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


Show: