Export (0) Print
Expand All

add Method

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.

Adds the specified items to the collection.

Script:  http://js.live.net/4.1/loader.js
Feature:  Microsoft.Live.Services
Namespace:  Microsoft.Live.Services



Type: Object

The items to add. Items can be a LiveItem or an array of LiveItem objects.

Classes that derive from DataCollection, such as ContactCollection, ProfileCollection, and ActivityCollection, validate that the added items are of the correct type.

The following code example demonstrates how to add an item to a DataCollection. In this example, a new Contact is added to a ContactCollection.

    dataCollection.add([new Microsoft.Live.Services.Contact("test@contoso.com")]);

Windows Live Messenger Connect

Supported in: 4.1

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

© 2015 Microsoft