Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An event that occurs immediately before the workflow invokes a specified method.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
<BrowsableAttribute(True)> _
<ValidationOptionAttribute(ValidationOption.Optional)> _
Public Event MethodInvoking As EventHandler
'Usage
Dim instance As LogToHistoryListActivity
Dim handler As EventHandler
AddHandler instance.MethodInvoking, handler
[BrowsableAttribute(true)]
[ValidationOptionAttribute(ValidationOption.Optional)]
public event EventHandler MethodInvoking
Examples
The following example demonstrates how to use the MethodInvoking event to set the method to call before the external method is invoked.
LogToHistoryListActivity logWriter = (LogToHistoryListActivity)sender;logWriter.MethodInvoking +=new EventHandler(this.OnBeforeLogging());private void OnBeforeLogging(object sender, EventArgs e){// Code to execute when the OnBeforeLogging method is called}
See Also
Reference
LogToHistoryListActivity Class