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,如果无法为此类型生成代码,它将引发异常。

适用于