ActivityCollection Class
.NET Framework 3.0
Models a strongly typed ICollection of type Activity.
Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
'Declaration Public NotInheritable Class ActivityCollection Inherits List(Of Activity) Implements IList(Of Activity), ICollection(Of Activity), _ IEnumerable(Of Activity), IList, ICollection, _ IEnumerable 'Usage Dim instance As ActivityCollection
public final class ActivityCollection extends List<Activity> implements IList<Activity>, ICollection<Activity>, IEnumerable<Activity>, IList, ICollection, IEnumerable
public final class ActivityCollection extends List<Activity> implements IList<Activity>, ICollection<Activity>, IEnumerable<Activity>, IList, ICollection, IEnumerable
Not applicable.
This class is used to represent the list of child activities for a CompositeActivity.
The following example shows access of the ActivityCollection which is the member of a composite activity class containing all child activities. This code example is part of the Using Throw SDK Sample and is from the ThrowWorkflow.cs file. For more information, see Using the ThrowActivity Activity.
this.CanModifyActivities = true; System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind(); this.throwActivity1 = new System.Workflow.ComponentModel.ThrowActivity(); activitybind1.Name = "ThrowWorkflow"; activitybind1.Path = "ThrownException"; // // throwActivity1 // this.throwActivity1.Name = "throwActivity1"; this.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); // // ThrowWorkflow // this.Activities.Add(this.throwActivity1); this.Name = "ThrowWorkflow"; this.CanModifyActivities = false;
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: