[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Event that is fired before a message is sent. The message contents can be changed before the message is delivered or inspected. Both SendSync and SendAsync fire this event.

Namespace:  Microsoft.ConfigurationManagement.Messaging.Sender.MPApi
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public event 
EventHandler<

MessageSenderEventArgs> 
OnSend
Public Event 
OnSend 
As 
EventHandler(
Of 

MessageSenderEventArgs)
public:
virtual  
event 
EventHandler<

MessageSenderEventArgs^>^ 
OnSend {
	
void 
add (
EventHandler<

MessageSenderEventArgs^>^ 
value);
	
void 
remove (
EventHandler<

MessageSenderEventArgs^>^ 
value);
}

Implements

IMessageSender . . :: . . OnSend

See Also