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:
public LicenseWindowsRegistryAlias(
	string location,
	AuthorEncryptionKey encryptionKey,
	bool useEncryption,
	RegistryHive root,
	RegistryViews registryView,
	string value


Type: SystemString
The full registry key path.
Type: com.softwarekey.Client.UtilsAuthorEncryptionKey
The client encryption key.
Type: SystemBoolean
Set to true to use encrypted aliases.
Type: Microsoft.Win32RegistryHive
The root key/hive (i.e. RegistryHive.LocalMachine).
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.
Type: SystemString
The name of the registry value (e.g. "Version").
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