del método WorkflowInstanceService.PublishCustomEvent
Envía un evento personalizado a un flujo de trabajo de ejecución con la carga de evento.
Espacio de nombres: Microsoft.SharePoint.WorkflowServices
Ensamblado: Microsoft.SharePoint.WorkflowServicesBase (en Microsoft.SharePoint.WorkflowServicesBase.dll)
Sintaxis
'Declaración
<ClientCallableMethodAttribute> _
Public MustOverride Sub PublishCustomEvent ( _
instance As WorkflowInstance, _
eventName As String, _
payload As String _
)
'Uso
Dim instance As WorkflowInstanceService
Dim instance As WorkflowInstance
Dim eventName As String
Dim payload As String
instance.PublishCustomEvent(instance, _
eventName, payload)
[ClientCallableMethodAttribute]
public abstract void PublishCustomEvent(
WorkflowInstance instance,
string eventName,
string payload
)
Parámetros
instance
Tipo: Microsoft.SharePoint.WorkflowServices.WorkflowInstanceA la instancia de WorkflowInstance .
eventName
Tipo: System.StringNombre del evento personalizado.
payload
Tipo: System.StringLa carga de evento personalizado.