Table of Contents

Delegate MessageReceivedEventHandler

Namespace
System.Net.WebSockets
Assembly
System.Net.WebSockets.dll

Describes the method that will handle the event that's fired when a message that has been subscribed to has been received.

public delegate void MessageReceivedEventHandler(object sender, MessageReceivedEventArgs e)

Parameters

sender object

The proximity device that received the message.

e MessageReceivedEventArgs

The proximity device that received the message.

Extension Methods

Constructors

MessageReceivedEventHandler(object, IntPtr)

public MessageReceivedEventHandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(object, MessageReceivedEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, MessageReceivedEventArgs e, AsyncCallback callback, object @object)

Parameters

sender object
e MessageReceivedEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, MessageReceivedEventArgs)

public virtual void Invoke(object sender, MessageReceivedEventArgs e)

Parameters

sender object
e MessageReceivedEventArgs