System.Activities Namespace


.NET Framework Class Library
Activity<(Of <(TResult>)>) Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

An abstract base class used to create composite activities from pre-existing Activity objects, which specifies a result type using the activity’s type specifier.

Namespace:  System.Activities
Assembly:  System.Activities (in System.Activities.dll)
Syntax

Visual Basic (Declaration)
<TypeConverterAttribute(GetType(ActivityWithResultConverter))> _
Public MustInherit Class Activity(Of TResult) _
    Inherits ActivityWithResult
Visual Basic (Usage)
Dim instance As Activity(Of TResult)
C#
[TypeConverterAttribute(typeof(ActivityWithResultConverter))]
public abstract class Activity<TResult> : ActivityWithResult
Visual C++
[TypeConverterAttribute(typeof(ActivityWithResultConverter))]
generic<typename TResult>
public ref class Activity abstract : public ActivityWithResult
F#
[<AbstractClassAttribute>]
[<TypeConverterAttribute(typeof(ActivityWithResultConverter))>]
type Activity<'TResult> =  
    class
        inherit ActivityWithResult
    end

Type Parameters

TResult

The type of the return value of the activity.

Remarks

Activity<(Of <(TResult>)>) is the base class in the activity type hierarchy. All other activity types with generic type definitions such as CodeActivity<(Of <(TResult>)>), NativeActivity<(Of <(TResult>)>), AsyncCodeActivity<(Of <(TResult>)>), and DynamicActivity<(Of <(TResult>)>) derive from this class.

Inheritance Hierarchy

System..::.Object
  System.Activities..::.Activity
    System.Activities..::.ActivityWithResult
      System.Activities..::.Activity<(Of <(TResult>)>)
        System.Activities..::.AsyncCodeActivity<(Of <(TResult>)>)
        System.Activities..::.CodeActivity<(Of <(TResult>)>)
        System.Activities..::.DynamicActivity<(Of <(TResult>)>)
        System.Activities.Expressions..::.AndAlso
        System.Activities.Expressions..::.OrElse
        System.Activities..::.NativeActivity<(Of <(TResult>)>)
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.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker