Click or drag to resize
LicenseWindowsRegistryAlias Constructor (String, AuthorEncryptionKey, Boolean, RegistryHive, RegistryViews, String)
Creates a new LicenseWindowsRegistryAlias object, which may be used for managing a license file alias located in the Windows registry in a specified root key/hive, using a specified view.

Namespace: com.softwarekey.Client.Licensing
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.18.1.0
Syntax
public LicenseWindowsRegistryAlias(
	string location,
	AuthorEncryptionKey encryptionKey,
	bool useEncryption,
	RegistryHive root,
	RegistryViews registryView,
	string value
)

Parameters

location
Type: SystemString
The full registry key path.
encryptionKey
Type: com.softwarekey.Client.UtilsAuthorEncryptionKey
The client encryption key.
useEncryption
Type: SystemBoolean
Set to true to use encrypted aliases.
root
Type: Microsoft.Win32RegistryHive
The root key/hive (i.e. RegistryHive.LocalMachine).
registryView
Type: com.softwarekey.Client.UtilsRegistryViews
The registry view to use. IMPORTANT: RegistryViews.DefaultView is required for applications targeting versions of the .NET Framework prior to 4.0.
value
Type: SystemString
The name of the registry value (e.g. "Version").
Remarks
Caution note Caution

The only root registry key/hive locations supported include HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, and HKEY_CLASSES_ROOT. Consequently, the only values supported from the RegistryHive enumeration include LocalMachine, CurrentUser, and ClassesRoot, respectively.

Caution note Caution

Specifying anything other than DefaultView will require your application to target .NET Framework 4.0 or later. If you use anything other than DefaultView while targeting earlier versions of the .NET Framework, this alias object will fail to function, and will contain a corresponding error in the LastError property.

See Also