Type.IsAutoClass 属性

获取一个值,通过该值指示是否为 Type 选定了字符串格式属性 (Attribute) AutoClass

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

语法

声明
Public ReadOnly Property IsAutoClass As Boolean
用法
Dim instance As Type
Dim value As Boolean

value = instance.IsAutoClass
public bool IsAutoClass { get; }
public:
virtual property bool IsAutoClass {
    bool get () sealed;
}
/** @property */
public final boolean get_IsAutoClass ()
public final function get IsAutoClass () : boolean

属性值

如果为 Type 选择了字符串格式属性 (Attribute) AutoClass,则为 true;否则为 false

备注

StringFormatMask 选择字符串格式属性。字符串格式属性通过定义字符串的解释方式来增强交互操作。

如果当前 Type 表示某种已构造的泛型类型,则此属性适用于从中构造此类型的泛型类型定义。例如,如果当前 Type 表示 MyGenericType<int>(在 Visual Basic 中为 MyGenericType(Of Integer)),则此属性的值由 MyGenericType<T> 确定。

如果当前 Type 表示某种泛型类型的类型参数,则此属性始终返回 false

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、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

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

Type 类
Type 成员
System 命名空间
TypeAttributes
Type.IsAnsiClass 属性
IsUnicodeClass