Raises an Event associated with the specified dependency property.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
'Declaration Protected Friend Sub RaiseEvent ( _ dependencyEvent As DependencyProperty, _ sender As Object, _ e As EventArgs _ )
The following code invokes this method to raise an event that is defined as a DependencyProperty.
This code example is part of the Send E-mail Activity sample and is from the SendEmailActivity.cs file. For more information, seeSend E-mail Activity Sample
Protected Overrides Function Execute(ByVal context As ActivityExecutionContext) As ActivityExecutionStatus Try ' Raise the SendingEmail event to the parent workflow or activity MyBase.RaiseEvent(SendEmailActivity.SendingEmailEvent, Me, EventArgs.Empty) ' Send the email now Me.SendEmailUsingSmtp() ' Raise the SentEmail event to the parent workflow or activity MyBase.RaiseEvent(SendEmailActivity.SentEmailEvent, Me, EventArgs.Empty) ' Return the closed status indicating that this activity is complete. Return ActivityExecutionStatus.Closed Catch ' An unhandled exception occurred. Throw it back to the WorkflowRuntime. Throw End Try End Function
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.