ActivityCollection, classe
TOC
Réduire la table des matières
Développer la table des matières

ActivityCollection, classe

Models a strongly typed ICollection of type Activity.

Espace de noms: System.Workflow.ComponentModel
Assembly : System.Workflow.ComponentModel (dans 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
Non 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;

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

Les membres statiques publics (Shared en Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile pour Pocket PC, Windows Mobile pour Smartphone, Windows Server 2003, Windows XP Édition Media Center, Windows XP Professionnel Édition x64, Windows XP SP2, Windows XP Starter Edition

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft