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