CodeGenerator.OutputTypeAttributes(TypeAttributes, Boolean, Boolean) Metod

Definition

Genererar kod för de angivna typattributen.

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)

Parametrar

attributes
TypeAttributes

Ett av uppräkningsvärdena som anger de typattribut som ska generera kod för.

isStruct
Boolean

trueom typen är en struct; annars . false

isEnum
Boolean

trueom typen är en uppräkning; annars . false

Gäller för

Se även