messageFactory Property
Note: |
|---|
| Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only. |
Feature: Messenger.Core
Namespace: Microsoft.Live.Messenger
The following code example determines whether a message factory has been declared for the user and, if none is detected, creates a new factory and registers it.
if (!user.get_messageFactory())
{
user.set_messageFactory(new myMessageFactory(user));
if (!user.get_messageFactory().isRegistered(myApplicationMessage.Id))
{
_user.get_messageFactory().register(_myApplicationMessage.Id);
}
}
| Exception | Condition |
|---|---|
| Exception | The property is set and the user is not signed in. |
| Exception | The user is not using Normal or Full of SessionServices. |
Note: