Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

ActivityCollection-Klasse

Models a strongly typed ICollection of type Activity.

Namespace: System.Workflow.ComponentModel
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)

public sealed class ActivityCollection : List<Activity>, 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
public final class ActivityCollection extends List<Activity> implements IList<Activity>, 
	ICollection<Activity>, IEnumerable<Activity>, IList, 
	ICollection, IEnumerable
Nicht zutreffend.

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;

System.Object
   System.Collections.Generic.List
    System.Workflow.ComponentModel.ActivityCollection

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen: