CodeGenerator.OutputTypeAttributes(TypeAttributes, Boolean, Boolean) 方法

定義

為指定的型別屬性產生程式碼。

protected:
 virtual void OutputTypeAttributes(System::Reflection::TypeAttributes attributes, bool isStruct, bool isEnum);
protected virtual void OutputTypeAttributes (System.Reflection.TypeAttributes attributes, bool isStruct, bool isEnum);
abstract member OutputTypeAttributes : System.Reflection.TypeAttributes * bool * bool -> unit
override this.OutputTypeAttributes : System.Reflection.TypeAttributes * bool * bool -> unit
Protected Overridable Sub OutputTypeAttributes (attributes As TypeAttributes, isStruct As Boolean, isEnum As Boolean)

參數

attributes
TypeAttributes

一個列舉值,表示要為其產生程式碼的型別屬性。

isStruct
Boolean

如果型別為結構,則為 true,否則為 false

isEnum
Boolean

如果型別為列舉型別,則為 true,否則為 false

適用於

另請參閱