Export (0) Print
Expand All

ExternalDataEventArgs Class

Represents the data sent along when an event is raised using the HandleExternalEventActivity activity.

Namespace: System.Workflow.Activities
Assembly: System.Workflow.Activities (in system.workflow.activities.dll)

[SerializableAttribute] 
public class ExternalDataEventArgs : EventArgs
/** @attribute SerializableAttribute() */ 
public class ExternalDataEventArgs extends EventArgs
SerializableAttribute 
public class ExternalDataEventArgs extends EventArgs
Not applicable.

A local communication interface marked with ExternalDataExchangeAttribute must declare a type that derives from ExternalDataEventArgs in the interface definition in order for the corresponding event to be handled in a workflow with a HandleExternalEventActivity activity.

An event class that inherits from ExternalDataEventArgs needs to implement a constructor that uses the :base(instanceId) constructor. In addition the new event class needs to be marked as Serializable as shown in the following code.

[Serializable]
public class TaskEventArgs : ExternalDataEventArgs
{
    private string orderName;

    public TaskEventArgs(Guid instanceId, string id)
        :base(instanceId)
    {
        orderName = id;
    }

    public string Id
    {
        get { return orderName; }
        set { orderName = value; }
    }
}

System.Object
   System.EventArgs
    System.Workflow.Activities.ExternalDataEventArgs

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

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft