Events

Events are fired when a certain thing happens. To receive events you must store the Events object during Initialize. For example:

Private WithEvents MDEvents As MessengerDiscovery_2.Events

Public Sub Initialize(ByVal Main As MessengerDiscovery_2.Main, ByVal Events As MessengerDiscovery_2.Events) Implements MessengerDiscovery_2.Plugin.Initialize

MDEvents = Events

End Sub

You can then browse events using Visual Studio;


Events

MessageSent(Connection, Message)

This event is raised when a Message is sent. Connection is given for the WLMConnection that the Message was sent on. Message is given for the message that was sent.

See the documentation on the WLMConnection class for more information on Connection.

See the documentation on the Message class for more information on Message.

MessageReceived(Connection, Message)

This event is raised when a Message is received. Connection is given for the WLMConnection that the Message was sent on. Message is given for the message that was received.

ContactSignOut(Connection, Contact)

This event is raised when a Contact signs out. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that signed out.

See the documentation on the Contact class for more information on Contact.

ContactJoinConversation(Connection, Contact)

This event is raised when a Contact joins a converstion connection. Connection is given for the WLMConnection that the contact joined. Contact is given for the contact that joined.

ContactSignIn(Connection, Contact)

This event is raised when a Contact signs in. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that signed in.

BlockContact(Connection, Contact)

This event is raised when a Contact is blocked. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that is blocked.

UserPropertyChange(Connection, ContactProperty)

This event is raised when a Contact changes their property. Connection is given for the WLMConnection that the event occured. ContactProperty is given for the contact property that is changed, use a Select Case to see which property is changed.

ConversationConnectionClose(Connection, Contact, blForces)

This event is raised when a conversation connection is closed with a contact. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that is blocked. blForced (if Tue) indicates the Connection was closed forefully.

ConversationConnectionOpen(Connection, Contact)

This event is raised when a conversation connection is opened with a contact. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that the conversation was opened with.

ContactInitialize(Connection, Contact)

This event is raised when the user signs into Messenger and the contact is already online. Connection is given for the WLMConnection that the event occured. Contact is given for the contact that is initialized.

SignIn() - No parameters

The event is raised when the user signs in.

SignOut() - No parameters

The event is raised when the user signs out.

Messenger Discovery
© 2009 Matt Holwood
This website is not affiliated with Microsoft Corporation
Website Design By Will Ingles - Alto Voltaje Design