LicenseContext Class

Definition

Specifies when you can use a licensed object and provides a way of obtaining additional services needed to support licenses running within its domain.

public class LicenseContext : IServiceProvider
Inheritance
LicenseContext
Derived
Implements

Inherited Members

System.Object

Remarks

This class provides the default LicenseContext. It implements only run-time support and does not support saved license keys.

Constructors

LicenseContext()

Initializes a new instance of the LicenseContext class.

Properties

UsageMode

When overridden in a derived class, gets a value that specifies when you can use a license.

Methods

GetSavedLicenseKey(Type, Assembly)

When overridden in a derived class, returns a saved license key for the specified type, from the specified resource assembly.

GetService(Type)

Gets the requested service, if it is available.

SetSavedLicenseKey(Type, String)

When overridden in a derived class, sets a license key for the specified type.