License.LicenseKey 属性

当在派生类中被重写时,获取授予该组件的许可证密钥。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Public MustOverride ReadOnly Property LicenseKey As String
用法
Dim instance As License
Dim value As String

value = instance.LicenseKey
public abstract string LicenseKey { get; }
public:
virtual property String^ LicenseKey {
    String^ get () abstract;
}
/** @property */
public abstract String get_LicenseKey ()
public abstract function get LicenseKey () : String

属性值

授予该组件的许可证密钥。

备注

LicenseProvider 可以使用任何 Unicode 字符串作为许可证密钥。LicenseKey 应该被当做不透明的 Cookie(即具有故意隐藏的内部结构的 Cookie)对待。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

License 类
License 成员
System.ComponentModel 命名空间
License 类
LicenseContext
LicenseException
LicenseManager
LicenseProvider
LicenseProviderAttribute
LicFileLicenseProvider
LicenseUsageMode