Share via


GenerateCodeForDeclaringAssemblyAttribute 類別

定義

表示來源產生器也應該檢查並產生包含指定型別之元件的程式碼。

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class GenerateCodeForDeclaringAssemblyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type GenerateCodeForDeclaringAssemblyAttribute = class
    inherit Attribute
Public NotInheritable Class GenerateCodeForDeclaringAssemblyAttribute
Inherits Attribute
繼承
GenerateCodeForDeclaringAssemblyAttribute
屬性

建構函式

GenerateCodeForDeclaringAssemblyAttribute(Type)

初始化 GenerateCodeForDeclaringAssemblyAttribute 類別的新執行個體。

屬性

Type

取得元件中的類型,來源產生器應該檢查並產生來源。

適用於

另請參閱