1 '---------------------------------------------------------------------
2 ' This file is part of the Windows Workflow Foundation SDK Code Samples.
4 ' Copyright (C) Microsoft Corporation. All rights reserved.
6 'This source code is intended only as a supplement to Microsoft
7 'Development Tools and/or on-line documentation. See these other
8 'materials for detailed information regarding Microsoft code samples.
10 'THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
11 'KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12 'IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
14 '---------------------------------------------------------------------
17 Imports System
.ComponentModel
18 Imports System
.Workflow
.Activities
19 Imports Microsoft
.VisualBasic
21 Public Class SendEmailWorkflow
22 Inherits SequentialWorkflowActivity
24 Private Sub OnBeforeSend(ByVal sender
As System
.Object, ByVal e
As CustomActivityEventArgs
)
25 Console
.WriteLine(e
.ActivityDescription
+ ": OnBeforeSend Event Handler - do any pre-processing logic here" + vbLf
)