Type.IsAutoClass 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示是否为 AutoClass
选择了字符串格式属性 Type。
public:
property bool IsAutoClass { bool get(); };
C#
public bool IsAutoClass { get; }
member this.IsAutoClass : bool
Public ReadOnly Property IsAutoClass As Boolean
如果为 true
选择了字符串格式属性 AutoClass
,则为 Type;否则为 false
。
StringFormatMask选择字符串格式属性。 字符串格式属性通过定义应如何解释字符串来增强互操作性。
如果当前 Type 表示构造的泛型类型,则此属性适用于从中构造该类型的泛型类型定义。 例如,如果当前 Type 表示 MyGenericType<int>
Visual Basic) MyGenericType(Of Integer)
中的 (,则此属性的值由 MyGenericType<T>
确定。
如果当前 Type 表示泛型类型的类型参数,则此属性始终返回 false
。
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |