CreateException<T> 类

 

用于创建异常的活动。

命名空间:   Microsoft.Activities
程序集:  Microsoft.Activities(位于 Microsoft.Activities.dll)

继承层次结构

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        Microsoft.Activities.CreateException<T>

语法

public sealed class CreateException<T> : Activity<Exception>
where T : Exception
generic<typename T>
where T : Exception
public ref class CreateException sealed : Activity<Exception^>
[<Sealed>]
type CreateException<'T when 'T : Exception> = 
    class
        inherit Activity<Exception>
    end
Public NotInheritable Class CreateException(Of T As Exception)
    Inherits Activity(Of Exception)

类型参数

  • T
    创建异常的类型。

构造函数

名称 说明
System_CAPS_pubmethod CreateException<T>()

初始化的新实例 CreateException<T> 类。

属性

名称 说明
System_CAPS_protproperty CacheId

(继承自 Activity。)

System_CAPS_pubproperty DisplayName

(继承自 Activity。)

System_CAPS_pubproperty Id

(继承自 Activity。)

System_CAPS_protproperty ImplementationVersion

(继承自 Activity。)

System_CAPS_pubproperty InnerException

获取或设置内部异常。

System_CAPS_pubproperty Message

获取或设置异常消息。

System_CAPS_pubproperty Result

(继承自 Activity<TResult>。)

System_CAPS_pubproperty ResultType

(继承自 ActivityWithResult。)

方法

名称 说明
System_CAPS_pubmethod Equals(Object)

(继承自 Object。)

System_CAPS_pubmethod GetHashCode()

(继承自 Object。)

System_CAPS_pubmethod GetType()

(继承自 Object。)

System_CAPS_pubmethod ToString()

(继承自 Activity。)

线程安全

此类型的所有公共静态(Visual Basic 中的 已共享 在 Visual Basic 中)成员都是线程安全的。不保证所有实例成员都是线程安全的。

另请参阅

Microsoft.Activities 命名空间

返回页首