TransactedRegistryKey.OpenSubKey Method (String, RegistryKeyPermissionCheck, RegistryRights)

Opens the specified subkey with the specified access and security rights. 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 rights As RegistryRights
Dim returnValue As TransactedRegistryKey

returnValue = instance.OpenSubKey(name, permissionCheck, rights)

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

Parameters

name

The name of the subkey to open.

permissionCheck

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

rights

A bitwise combination of RegistryRights values that specifies the desired security 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: