ExternalDataEventArgs 构造函数

定义

初始化 ExternalDataEventArgs 类的新实例。

重载

ExternalDataEventArgs()

初始化 ExternalDataEventArgs 类的新实例。

ExternalDataEventArgs(Guid)

使用工作流的实例标识符初始化 ExternalDataEventArgs 类的新实例。

ExternalDataEventArgs(Guid, IPendingWork, Object)

初始化 ExternalDataEventArgs 类的新实例。

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

初始化 ExternalDataEventArgs 类的新实例。

示例

下面的示例演示如何从派生类的构造函数调用基 ExternalDataEventArgs 构造函数。 此示例摘自“订单状态机”SDK 示例。 有关详细信息,请参阅 订购状态机示例

public override void Dispose()
{
    try
    {
        IDesignerLoaderHost host = LoaderHost;
        if (host != null)
        {
            host.RemoveService(typeof(IIdentifierCreationService));
            host.RemoveService(typeof(IMenuCommandService));
            host.RemoveService(typeof(IToolboxService));
            host.RemoveService(typeof(ITypeProvider), true);
            host.RemoveService(typeof(IWorkflowCompilerOptionsService));
            host.RemoveService(typeof(IEventBindingService));
        }
    }
    finally
    {
        base.Dispose();
    }
}
Public Overrides Sub Dispose()
    Try
        Dim host As IDesignerLoaderHost = LoaderHost
        If host IsNot Nothing Then
            host.RemoveService(GetType(IIdentifierCreationService))
            host.RemoveService(GetType(IMenuCommandService))
            host.RemoveService(GetType(IToolboxService))
            host.RemoveService(GetType(ITypeProvider), True)
            host.RemoveService(GetType(IWorkflowCompilerOptionsService))
            host.RemoveService(GetType(IEventBindingService))
        End If
    Finally
        MyBase.Dispose()
    End Try
End Sub

ExternalDataEventArgs()

初始化 ExternalDataEventArgs 类的新实例。

public:
 ExternalDataEventArgs();
public ExternalDataEventArgs ();
Public Sub New ()

适用于

ExternalDataEventArgs(Guid)

使用工作流的实例标识符初始化 ExternalDataEventArgs 类的新实例。

public:
 ExternalDataEventArgs(Guid instanceId);
public ExternalDataEventArgs (Guid instanceId);
new System.Workflow.Activities.ExternalDataEventArgs : Guid -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid)

参数

instanceId
Guid

包含应处理该事件的 HandleExternalEventActivity 的工作流实例的工作流实例标识符。

适用于

ExternalDataEventArgs(Guid, IPendingWork, Object)

初始化 ExternalDataEventArgs 类的新实例。

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object)

参数

instanceId
Guid

包含应处理该事件的 HandleExternalEventActivity 的工作流实例的工作流实例标识符。

workHandler
IPendingWork

允许引发事件的外部代码参与批处理的 IPendingWork

workItem
Object

包含引发事件的外部代码的对象。

适用于

ExternalDataEventArgs(Guid, IPendingWork, Object, Boolean)

初始化 ExternalDataEventArgs 类的新实例。

public:
 ExternalDataEventArgs(Guid instanceId, System::Workflow::Runtime::IPendingWork ^ workHandler, System::Object ^ workItem, bool waitForIdle);
public ExternalDataEventArgs (Guid instanceId, System.Workflow.Runtime.IPendingWork workHandler, object workItem, bool waitForIdle);
new System.Workflow.Activities.ExternalDataEventArgs : Guid * System.Workflow.Runtime.IPendingWork * obj * bool -> System.Workflow.Activities.ExternalDataEventArgs
Public Sub New (instanceId As Guid, workHandler As IPendingWork, workItem As Object, waitForIdle As Boolean)

参数

instanceId
Guid

包含应处理该事件的 HandleExternalEventActivity 的工作流实例的工作流实例标识符。

workHandler
IPendingWork

允许引发事件的外部代码参与批处理的 IPendingWork

workItem
Object

包含引发事件的外部代码的对象。

waitForIdle
Boolean

一个值,指示工作流是否在引发事件前应处于空闲状态;否则为 false

适用于