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
{
}

适用于