共用方式為


ConsiderForCodeGenerationAttribute(Type, Boolean) 建構函式

定義

初始化 ConsiderForCodeGenerationAttribute 的新執行個體。

protected ConsiderForCodeGenerationAttribute (Type type, bool throwOnFailure = false);
new Orleans.CodeGeneration.ConsiderForCodeGenerationAttribute : Type * bool -> Orleans.CodeGeneration.ConsiderForCodeGenerationAttribute
Protected Sub New (type As Type, Optional throwOnFailure As Boolean = false)

參數

type
Type

產生器應該為其產生程式碼的類型

throwOnFailure
Boolean

當 為 時 true ,如果無法為此類型產生程式碼,則會擲回例外狀況。

適用於