语言

LicenseContext.SetSavedLicenseKey(Type, String) 方法

定义

在派生类中重写时,为指定类型设置许可证密钥。

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)

参数

type
Type

表示 Type 与许可证密钥关联的组件。

key
String

要 LicenseKey 保存的组件类型。

注解

通常,在设计时设置 LicenseUsageMode 时调用此方法。 必须重写该 UsageMode 属性才能实现设计时许可证支持。

继承者说明

此方法不支持保存的许可证密钥。 重写此方法和 GetSavedLicenseKey(Type, Assembly) 实现密钥的方法。

适用于

另请参阅