ConversationCollection.Create Method (Contact)
Creates a conversation with the specified contact. Script: http://www.wlmessenger.net/api/3.7/loader.js
Feature: Messenger.Core
Namespace: Microsoft.Live.Messenger
var conversation = instance.create(contact);
Parameters
- contact
- Type: Microsoft.Live.Messenger.Contact
The contact.
Return Value
The Create(Contact) method creates a conversation between the user and the provided contact. The Conversation that is returned represents the user's view of the conversation between the user and the contact. The other contact will not learn of the conversation until the first message that the user sends is delivered to the contact.
This method is equivalent to providing the CurrentAddress of a Contact to the Create(IMAddress) method.
If an active conversation already exists between the user and the contact, the existing conversation is returned.
Once a conversation has been created, a TextMessage can be sent using the SendMessage(Message) method of the Conversation.
The CollectionChanged event should be handled to detect conversations created by other contacts.
| Exception | Condition |
|---|---|
| Exception | contact is a null reference. |
| Exception | The user is not using Normal or Full of SessionServices. |