Lync contact samples
Learn about the contact-related quick-start samples that are installed with Microsoft Lync 2013 SDK.
Applies to: Lync 2013 | Lync Server 2013
In this article |
Contact samples
The quick-start samples in the following table show how to interact with Lync contacts by using Lync 2013 API objects and controls from the Microsoft.Lync.Controls namespace.
Application |
Description |
---|---|
ContactCard control list |
Loads three Microsoft.Lync.Controls.ContactCard controls into a list on a page in a Silverlight or WPF application.
Download the sample from Code Gallery at the following locations:
|
ContactList control |
Populates a page with the Microsoft.Lync.Controls.ContactList control and then lists the SIP URI values for the contacts in the list.
Download the sample from Code Gallery at the following locations:
|
CustomContactList control |
Populates a page with a Microsoft.Lync.Controls.CustomContactList control and several child Microsoft.Lync.Controls.CustomContactListItem objects. The child objects are created and added at runtime by using C# code in a code-behind source file.
Download the sample from Code Gallery at the following locations:
|
ContactSearch control |
Populates a page with a Microsoft.Lync.Controls.ContactSearch control and conducts a search by user name or skill.
Download the sample from Code Gallery at the following locations:
|
Contact search with input box and search results |
Populates a page with a Microsoft.Lync.Controls.ContactSearchInputBox control and a Microsoft.Lync.Controls.ContactSearchResultList control. The ContactSearchInputBox is bound to the ContactSearchResultList so that the result list displays search results based on what the user types in the search input box.
Download the sample from Code Gallery at the following locations:
|
Contact Information |
Uses the Lync Model API to retrieve and publish information of the Self contact. The Self contact is the currently signed-in user. This sample also shows how to sign in to Lync by using the credentials of the active user. Path: %PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\ContactInformation Download the sample from Code Gallery at the following location: |
Display Frequent and Favorite contacts |
Populates a page with a list of favorite contacts and a list of frequent contacts. The sample uses the following classes and methods:
WPF sample location: %PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\DisplayFrequentAndFavoriteContacts Download the sample from Code Gallery at the following location:
|
Add and remove a custom group |
Lists the groups in your contact list and lets you add or remove a group. The sample uses the ContactManager.Groups property, the ContactManager.BeginAddGroup method, and the ContactManager.BeginRemoveGroup method. Path: %PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\AddCustomGroup Download the sample from Code Gallery at the following location:
|
MoveContactBetweenGroups |
Lists all custom groups in a user’s contact list and lets a user move a contact from one custom group to another custom group. The sample uses the following classes and methods:
Path: %PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\MoveContactBetweenGroups Download the sample from Code Gallery at the following location:
|
Add and remove a contact from a group |
Adds and removes contacts from the Other Contacts group. The sample uses the following classes and methods:
Path: %PROGRAMFILES(X86)%\Microsoft Office 2013\LyncSDK\Samples\microsamples.zip\AddRemoveContacts Download the sample from Code Gallery at the following location:
|