TransactedRegistryKey.CreateSubKey Method (String, RegistryKeyPermissionCheck, TransactedRegistrySecurity)

Creates a new subkey or opens an existing one. 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 subkey As String
Dim permissionCheck As RegistryKeyPermissionCheck
Dim registrySecurity As TransactedRegistrySecurity
Dim returnValue As TransactedRegistryKey

returnValue = instance.CreateSubKey(subkey, permissionCheck, registrySecurity)

[ComVisibleAttribute(false)] 
public TransactedRegistryKey CreateSubKey (
	string subkey,
	RegistryKeyPermissionCheck permissionCheck,
	TransactedRegistrySecurity registrySecurity
)
/** @attribute ComVisibleAttribute(false) */ 
public TransactedRegistryKey CreateSubKey (
	String subkey, 
	RegistryKeyPermissionCheck permissionCheck, 
	TransactedRegistrySecurity registrySecurity
)
ComVisibleAttribute(false) 
public function CreateSubKey (
	subkey : String, 
	permissionCheck : RegistryKeyPermissionCheck, 
	registrySecurity : TransactedRegistrySecurity
) : TransactedRegistryKey

Parameters

subkey

The subkey to add or the path to the subkey to open.

permissionCheck

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

registrySecurity

A TransactedRegistrySecurity object that specifies the access control security for the new key.

Return Value

Returns a TransactedRegistryKey that represents the registry key.

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: