Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ExternalDataExchangeAttribute Class

Marks an interface as a local service interface. This class cannot be inherited.

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

[AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple=false, Inherited=false)] 
public sealed class ExternalDataExchangeAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple=false, Inherited=false) */ 
public final class ExternalDataExchangeAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple=false, Inherited=false) 
public final class ExternalDataExchangeAttribute extends Attribute
Not applicable.

A class that implements a local service interface must be added to the ExternalDataExchangeService and can be used by CallExternalMethodActivity and HandleExternalEventActivity.

Events on interfaces that are attributed with ExternalDataExchangeAttribute should have event data that derive from ExternalDataEventArgs.

While generic types are supported for interface method and event declarations, generic types are not supported for the interface declaration itself. The following interface would not be valid for use as an ExternalDataExchange:

public interface IInterfaceName<TCommand>
{ 
    void MethodName(TCommand Request);
}

The following code example demonstrates how to set the ExternalDataExchangeAttribute on an interface. This code example is part of the ActiveDirectoryRoles SDK sample from the IStartPurchaseOrder.cs file. For more information, see Using Active Directory Roles.

[ExternalDataExchangeAttribute()]
public interface IStartPurchaseOrder
{
    event EventHandler<InitiatePOEventArgs> InitiatePurchaseOrder;
}

System.Object
   System.Attribute
    System.Workflow.Activities.ExternalDataExchangeAttribute

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:
© 2015 Microsoft