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.

适用于

另请参阅