LicenseContext.UsageMode 属性

当在派生类中被重写时,获取一个指定何时可使用许可证的值。

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

语法

声明
Public Overridable ReadOnly Property UsageMode As LicenseUsageMode
用法
Dim instance As LicenseContext
Dim value As LicenseUsageMode

value = instance.UsageMode
public virtual LicenseUsageMode UsageMode { get; }
public:
virtual property LicenseUsageMode UsageMode {
    LicenseUsageMode get ();
}
/** @property */
public LicenseUsageMode get_UsageMode ()
public function get UsageMode () : LicenseUsageMode

属性值

LicenseUsageMode 值之一,指定您何时可以使用许可证。默认为 LicenseUsageMode.Runtime

备注

给继承者的说明 若要实现设计时支持,请在继承的类中重写此属性。

平台

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

请参见

参考

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