CreateException<T, TResult> Class

 

An activity to create an Exception.

Namespace:   Microsoft.Activities
Assembly:  Microsoft.Activities (in Microsoft.Activities.dll)

Inheritance Hierarchy

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

Syntax

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

Type Parameters

  • T
    The type of the created exception.
  • TResult
    The type of the returned exception.

Constructors

Name Description
System_CAPS_pubmethod CreateException<T, TResult>()

Initializes a new instance of the CreateException<T, TResult> class.

Properties

Name Description
System_CAPS_protproperty CacheId

(Inherited from Activity.)

System_CAPS_pubproperty DisplayName

(Inherited from Activity.)

System_CAPS_pubproperty Id

(Inherited from Activity.)

System_CAPS_protproperty ImplementationVersion

(Inherited from CodeActivity<TResult>.)

System_CAPS_pubproperty InnerException

Gets or sets the inner exception.

System_CAPS_pubproperty Message

Gets or sets the exception message.

System_CAPS_pubproperty Result

(Inherited from Activity<TResult>.)

System_CAPS_pubproperty ResultType

(Inherited from ActivityWithResult.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Activity.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Activities Namespace

Return to top