ConsiderForCodeGenerationAttribute(Type, Boolean) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
,如果无法为此类型生成代码,它将引发异常。