LicenseContext.SetSavedLicenseKey Method (Type, String)


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

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public virtual void SetSavedLicenseKey(
	Type type,
	string key


Type: System.Type

A Type that represents the component associated with the license key.

Type: System.String

The LicenseKey to save for the type of component.

Typically, call this method when you set LicenseUsageMode at design time. You must override the UsageMode property to implement design-time license support.

Notes to Inheritors:

This method does not provide support for a saved license key. Override this method and the GetSavedLicenseKey method to implement a key.

.NET Framework
Available since 1.1
Return to top