deserialize Method
Collapse the table of content
Expand the table of content

PresenceExtensionFactory.Deserialize Method

Deserializes the given custom presence property.

Feature:  Messenger.Core
Namespace:  Microsoft.Live.Messenger.Presence

var presenceExtension = instance.deserialize(name, content);


Type: String
The name of the custom property.
Type: String
The serialized data.

Return Value

A new PresenceExtensionFactory, or null if the property is invalid or unrecognized.

The following example demonstrates creating an instance of PresenceExtensionFactory.

            MyPresenceFactory = function () {}
            MyPresenceFactory.prototype.serialize = function(prop) {
                return prop.get_content();
            MyPresenceFactory.prototype.deserialize = function(name, content) {
                return new MyPresenceExtension(name, content);

Windows Live Messenger Web Toolkit

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0

© 2016 Microsoft