Bewerken

Delen via


LicenseContext.SetSavedLicenseKey(Type, String) Method

Definition

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

public:
 virtual void SetSavedLicenseKey(Type ^ type, System::String ^ key);
public virtual void SetSavedLicenseKey (Type type, string key);
abstract member SetSavedLicenseKey : Type * string -> unit
override this.SetSavedLicenseKey : Type * string -> unit
Public Overridable Sub SetSavedLicenseKey (type As Type, key As String)

Parameters

type
Type

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

key
String

The LicenseKey to save for the type of component.

Remarks

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(Type, Assembly) method to implement a key.

Applies to

See also