LicenseContext.SetSavedLicenseKey(Type, String) Método

Definição

Quando substituído em uma classe derivada, define uma chave de licença para o tipo especificado.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)

Parâmetros

type
Type

Um Type que representa o componente associado à chave de licença.A Type that represents the component associated with the license key.

key
String

O LicenseKey a salvar para o tipo de componente.The LicenseKey to save for the type of component.

Comentários

Normalmente, chame esse método quando você definir LicenseUsageMode em tempo de design.Typically, call this method when you set LicenseUsageMode at design time. Você deve substituir a UsageMode propriedade para implementar o suporte de licença em tempo de design.You must override the UsageMode property to implement design-time license support.

Notas aos Herdeiros

Este método não fornece suporte para uma chave de licença salva.This method does not provide support for a saved license key. Substitua esse método e o GetSavedLicenseKey(Type, Assembly) método para implementar uma chave.Override this method and the GetSavedLicenseKey(Type, Assembly) method to implement a key.

Aplica-se a

Confira também