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的表示泛型型別的類型參數,則這個屬性false一律會傳回。If the current Type represents a type parameter of a generic type, this property always returns false.

適用於

另請參閱