Type.IsAutoClass Type.IsAutoClass Type.IsAutoClass Type.IsAutoClass Property

定义

获取一个值,该值指示是否为 AutoClass 选择了字符串格式属性 TypeGets a value indicating whether the string format attribute AutoClass is selected for the Type.

public:
 property bool IsAutoClass { bool get(); };
public bool IsAutoClass { get; }
member this.IsAutoClass : bool
Public ReadOnly Property IsAutoClass As Boolean

属性值

如果为 true 选择了字符串格式属性 AutoClass,则为 Type;否则为 falsetrue if the string format attribute AutoClass is selected for the Type; otherwise, false.

实现

注解

StringFormatMask选择字符串格式属性。The StringFormatMask selects the string format attributes. 通过定义应如何解释字符串,字符串格式属性增强互操作性。The string format attributes enhance interoperability by defining how strings should be interpreted.

如果当前Type表示构造泛型类型,此属性适用于从其构造类型的泛型类型定义。If the current Type represents a constructed generic type, this property applies to the generic type definition from which the type was constructed. 例如,如果当前Type表示MyGenericType<int>(MyGenericType(Of Integer)在 Visual Basic 中),此属性的值由MyGenericType<T>For example, if the current Type represents MyGenericType<int> (MyGenericType(Of Integer) in Visual Basic), the value of this property is determined by MyGenericType<T>.

如果当前Type表示类型参数的泛型类型,此属性始终返回falseIf the current Type represents a type parameter of a generic type, this property always returns false.

适用于

另请参阅