Share via


ExceptionClassAttribute(String) 构造函数

定义

初始化 ExceptionClassAttribute 类的新实例。

public:
 ExceptionClassAttribute(System::String ^ name);
public ExceptionClassAttribute (string name);
new System.EnterpriseServices.ExceptionClassAttribute : string -> System.EnterpriseServices.ExceptionClassAttribute
Public Sub New (name As String)

参数

name
String

用于在消息被路由到死信队列之前由播放机激活并播放的异常类的名称。

示例

下面的代码示例创建新的 ExceptionClassAttribute

[ExceptionClass("ExceptionHandler")]
public class ExceptionClassAttribute_Ctor_String : ServicedComponent
{
}

适用于