Export (0) Print
Expand All

DynamicActivity<TResult> Class

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.

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        System.Activities.DynamicActivity<TResult>

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

[ContentPropertyAttribute("Implementation")]
public sealed class DynamicActivity<TResult> : Activity<TResult>, 
	ICustomTypeDescriptor

Type Parameters

TResult

The result returned by the activity.

The DynamicActivity<TResult> type exposes the following members.

  NameDescription
Public methodDynamicActivity<TResult>Creates a new instance of the DynamicActivity<TResult> class.
Top

  NameDescription
Public propertyAttributesGets the collection of attributes of the dynamically generated activity.
Protected propertyCacheIdGets the identifier of the cache that is unique within the scope of the workflow definition. (Inherited from Activity.)
Public propertyConstraintsReturns a collection of Constraint activities that are configured to provide validation for the DynamicActivity<TResult>.
Public propertyDisplayNameGets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (Inherited from Activity.)
Public propertyIdGets an identifier that is unique in the scope of the workflow definition. (Inherited from Activity.)
Public propertyImplementationGets or sets the execution logic of the activity.
Public propertyImplementationVersionGets or sets the implementation version of the activity.
Public propertyNameGets the name to be displayed for the activity in the workflow designer.
Public propertyPropertiesGets the collection of properties that map to the arguments of the dynamically generated activity.
Public propertyResultGets or sets the result argument for the Activity<TResult>. (Inherited from Activity<TResult>.)
Public propertyResultTypeWhen implemented in a derived class, gets the type of an activity OutArgument. (Inherited from ActivityWithResult.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodShouldSerializeDisplayNameIndicates whether the DisplayName property should be serialized. (Inherited from Activity.)
Public methodToStringReturns a String that contains the Id and DisplayName of the Activity. (Inherited from Activity.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetAttributesReturns a collection of attributes of the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetClassNameReturns the class name of the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetComponentNameReturns the component name of the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetConverterReturns a type converter for the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetDefaultEventReturns the default event for the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetDefaultPropertyReturns the default property for the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEditorReturns an editor with the specified base type.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents()Returns the collection of events of the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetEvents(Attribute[])Returns the collection of events of the dynamic activity using a specified array of attributes as a filter.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties()Returns the collection of properties of the dynamic activity.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetProperties(Attribute[])Returns the collection of properties of the dynamic activity using a specified array of attributes as a filter.
Explicit interface implemetationPrivate methodICustomTypeDescriptor.GetPropertyOwnerReturns this instance of the DynamicActivity<TResult> class.
Top

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

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