CodeGenerator.OutputTypeAttributes(TypeAttributes, Boolean, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定的类型属性生成代码。
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.