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.Activities::Activity
System.Activities::ActivityWithResult
System.Activities::Activity<TResult>
System.Activities::DynamicActivity<TResult>
Assembly: System.Activities (in System.Activities.dll)
The DynamicActivity<TResult> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DynamicActivity<TResult> | Creates a new instance of the DynamicActivity<TResult> class. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets the collection of attributes of the dynamically generated activity. |
![]() | CacheId | Gets the identifier of the cache that is unique within the scope of the workflow definition. (Inherited from Activity.) |
![]() | Constraints | Returns a collection of Constraint activities that are configured to provide validation for the DynamicActivity<TResult>. |
![]() | DisplayName | Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (Inherited from Activity.) |
![]() | Id | Gets an identifier that is unique in the scope of the workflow definition. (Inherited from Activity.) |
![]() | Implementation | Gets or sets the execution logic of the activity. |
![]() | Name | Gets the name to be displayed for the activity in the workflow designer. |
![]() | Properties | Gets the collection of properties that map to the arguments of the dynamically generated activity. |
![]() | Result | Gets or sets the result argument for the Activity<TResult>. (Inherited from Activity<TResult>.) |
![]() | ResultType | When implemented in a derived class, gets the type of an activity OutArgument. (Inherited from ActivityWithResult.) |
| Name | Description | |
|---|---|---|
![]() | CacheMetadata | Creates and validates a description of the activity’s arguments, variables, child activities, and activity delegates. (Inherited from Activity.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ShouldSerializeDisplayName | Indicates whether the DisplayName property should be serialized. (Inherited from Activity.) |
![]() | ToString | Returns a String that contains the Id and DisplayName of the Activity. (Inherited from Activity.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICustomTypeDescriptor::GetAttributes | Returns a collection of attributes of the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetClassName | Returns the class name of the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetComponentName | Returns the component name of the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetConverter | Returns a type converter for the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetDefaultEvent | Returns the default event for the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetDefaultProperty | Returns the default property for the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetEditor | Returns an editor with the specified base type. |
![]() ![]() | ICustomTypeDescriptor::GetEvents() | Returns the collection of events of the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetEvents(array<Attribute>) | Returns the collection of events of the dynamic activity using a specified array of attributes as a filter. |
![]() ![]() | ICustomTypeDescriptor::GetProperties() | Returns the collection of properties of the dynamic activity. |
![]() ![]() | ICustomTypeDescriptor::GetProperties(array<Attribute>) | Returns the collection of properties of the dynamic activity using a specified array of attributes as a filter. |
![]() ![]() | ICustomTypeDescriptor::GetPropertyOwner | Returns this instance of the DynamicActivity<TResult> class. |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
