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

適用於

另請參閱