DynamicActivity<TResult> DynamicActivity<TResult> DynamicActivity<TResult> DynamicActivity<TResult> Class

Definition

Provides an approach that is consistent with the document object model (DOM), which constructs activities dynamically that interface with the WF designer and workflow runtime using ICustomTypeDescriptor.

generic <typename TResult>
public ref class DynamicActivity sealed : System::Activities::Activity<TResult>, System::ComponentModel::ICustomTypeDescriptor
[System.Windows.Markup.ContentProperty("Implementation")]
public sealed class DynamicActivity<TResult> : System.Activities.Activity<TResult>, System.ComponentModel.ICustomTypeDescriptor
type DynamicActivity<'Result> = class
    inherit Activity<'Result>
    interface ICustomTypeDescriptor
Public NotInheritable Class DynamicActivity(Of TResult)
Inherits Activity(Of TResult)
Implements ICustomTypeDescriptor

Type Parameters

TResult

The result returned by the activity.

Inheritance
Attributes
Implements

Remarks

With DynamicActivity<TResult> you can create new activities without creating new types. DynamicActivity<TResult> with its associated XAML support in ActivityXamlServices allows new arguments to be defined in XAML and bound by the host without requiring XAML to be compiled.

Constructors

DynamicActivity<TResult>() DynamicActivity<TResult>() DynamicActivity<TResult>() DynamicActivity<TResult>()

Creates a new instance of the DynamicActivity<TResult> class.

Properties

Attributes Attributes Attributes Attributes

Gets the collection of attributes of the dynamically generated activity.

CacheId CacheId CacheId CacheId

Gets the identifier of the cache that is unique within the scope of the workflow definition.

(Inherited from Activity)
Constraints Constraints Constraints Constraints

Returns a collection of Constraint activities that are configured to provide validation for the DynamicActivity<TResult>.

DisplayName DisplayName DisplayName DisplayName

Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

(Inherited from Activity)
Id Id Id Id

Gets an identifier that is unique in the scope of the workflow definition.

(Inherited from Activity)
Implementation Implementation Implementation Implementation

Gets or sets the execution logic of the activity.

ImplementationVersion ImplementationVersion ImplementationVersion ImplementationVersion

Gets or sets the implementation version of the activity.

Name Name Name Name

Gets the name to be displayed for the activity in the workflow designer.

Properties Properties Properties Properties

Gets the collection of properties that map to the arguments of the dynamically generated activity.

Result Result Result Result

Gets or sets the result argument for the Activity<TResult>.

(Inherited from Activity<TResult>)
ResultType ResultType ResultType ResultType

When implemented in a derived class, gets the type of an activity OutArgument.

(Inherited from ActivityWithResult)

Explicit Interface Implementations

ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes()

Returns a collection of attributes of the dynamic activity.

ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName()

Returns the class name of the dynamic activity.

ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName()

Returns the component name of the dynamic activity.

ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter()

Returns a type converter for the dynamic activity.

ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent()

Returns the default event for the dynamic activity.

ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty()

Returns the default property for the dynamic activity.

ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type)

Returns an editor with the specified base type.

ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents()

Returns the collection of events of the dynamic activity.

ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[])

Returns the collection of events of the dynamic activity using a specified array of attributes as a filter.

ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties()

Returns the collection of properties of the dynamic activity.

ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[])

Returns the collection of properties of the dynamic activity using a specified array of attributes as a filter.

ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

Returns this instance of the DynamicActivity<TResult> class.

Methods

CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata) CacheMetadata(ActivityMetadata)

Creates and validates a description of the activity's arguments, variables, child activities, and activity delegates.

(Inherited from Activity)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity) OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

Raises an event when creating dynamic update map.

(Inherited from Activity)
ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName()

Indicates whether the DisplayName property should be serialized.

(Inherited from Activity)
ToString() ToString() ToString() ToString()

Returns a String that contains the Id and DisplayName of the Activity.

(Inherited from Activity)

Applies to