License 类

定义

为所有许可证提供 abstract 基类。Provides the abstract base class for all licenses. 对组件的特定实例授予许可证。A license is granted to a specific instance of a component.

public ref class License abstract : IDisposable
public abstract class License : IDisposable
type License = class
    interface IDisposable
Public MustInherit Class License
Implements IDisposable
继承
License
实现

注解

当组件被释放Dispose或终止时, 所有组件都必须调用其授予的许可证。All components must call Dispose for the licenses they grant when the component is disposed or finalized.

实施者说明

当从 License 继承时,必须重写下面的成员:LicenseKeyDispose()When you inherit from License, you must override the following members: LicenseKey and Dispose().

有关授权的详细信息, 请参阅如何:许可证组件和控件For more information on licensing, see How to: License Components and Controls.

构造函数

License()

初始化 License 类的新实例。Initializes a new instance of the License class.

属性

LicenseKey

当在派生类中被重写时,获取授予该组件的许可证密钥。When overridden in a derived class, gets the license key granted to this component.

方法

Dispose()

当在派生类中被重写时,释放该许可证使用的资源。When overridden in a derived class, disposes of the resources used by the license.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅