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 | |
---|---|---|
CreateException<T, TResult>() | Initializes a new instance of the CreateException<T, TResult> class. |
Properties
Name | Description | |
---|---|---|
CacheId | (Inherited from Activity.) |
|
DisplayName | (Inherited from Activity.) |
|
Id | (Inherited from Activity.) |
|
ImplementationVersion | (Inherited from CodeActivity<TResult>.) |
|
InnerException | Gets or sets the inner exception. |
|
Message | Gets or sets the exception message. |
|
Result | (Inherited from Activity<TResult>.) |
|
ResultType | (Inherited from ActivityWithResult.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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