RegistryKeys

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

A class to manage license registry keys.

public class RegistryKeys

Inheritance

objectRegistryKeys

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

RegistryKeys()

Initializes a new instance of the class.

public RegistryKeys()

Properties

Root

Gets or sets the registry hive.

public RegistryHive Root { get; set; }

Property Value

RegistryHive

Methods

CreateLicenseKey(Assembly, string)

Creates a registry key for the specified assembly and license key.

public void CreateLicenseKey(Assembly assembly, string license)

Parameters

NameDescription

assembly Assembly

The assembly for which to create the registry key.

license string

The license string.

DeleteLicenseKey(Assembly)

Deletes the license key for the specified assembly.

public void DeleteLicenseKey(Assembly assembly)

Parameters

NameDescription

assembly Assembly

The assembly for which to delete the license key.

GetAssemblySubKey(Assembly)

Gets the registry sub key for the specified assembly.

protected virtual string GetAssemblySubKey(Assembly assembly)

Parameters

NameDescription

assembly Assembly

The assembly for which to retrieve the license key.

Returns

NameDescription

The assembly sub key.

GetLicenseKey(Assembly)

Gets the license key for the specified assembly.

public string GetLicenseKey(Assembly assembly)

Parameters

NameDescription

assembly Assembly

The assembly for which to retrieve the license key.

Returns

NameDescription

The license key.

Last updated