Use Microsoft Lync 2010 SDK classes to launch and automate the Microsoft Lync 2010 user interface, integrated within third-party business applications. Use Lync Controls to integrate specific features like presence, contact cards, or search into business applications.

Notable classes and members relating to extensibility appear in the following sections. For a full list, see Lync 2010 API Class Library documentation.

Automation Class

A third-party application can use UI Automation to create conversations and dock the conversation window in the business application. Use the Automation class to start or join conversations and take advantage of the features built into Lync 2010. The Automation class is found in the Lync.Model.Extensibility namespace and is obtained from the static LyncClient class with a call into the GetAutomation method.

The Automation class provides basic automation functionality for applications designed to capitalize on the features available in Lync 2010. After adding a minimal amount of code, the application can then start a conversation, share a desktop application, or join a conference. You can dock a conversation window created and maintained by Lync 2010 within your application.

UI Automation launches the Lync 2010 conversation window. You can resize or move the conversation window on the local computer screen. The Automation class includes the following methods.

Method

Description

GetConversationWindow

Returns the conversation window.

LaunchAddContactWizard

Adds a person or group to a contact list.

BeginStartConversation

Starts a conversation or joins a conference.

EndStartConversation

Completes the asynchronous start of a conversation.

ConversationWindow Class

With the ConversationWindow class, you specify the docking behavior, size, and location of a window opened by Lync 2010. The ConversationWindow class includes the following methods and properties.

Method

Description

BeginOpenExtensibilityWindow

Begins to asynchronously launch the given URL in the conversation extension window.

Close

Closes the window.

Dock

Docks the window to the specified parent.

EndOpenExtensibilityWindow

Completes the asynchronous launch of the conversation extension window.

FlashExtensibilityWindow

Flashes the frame of the extensibility window to indicate attention is needed.

Move

Moves and resized the window to the specified coordinates and dimensions.

MoveAndResize

Moves the window to the specified coordinates.

Undock

Undocks the window from any parent.

Property

Description

Conversation

Gets the underlying Conversation instance.

Height

Gets the height of the conversation window.

IsDocked

Returns a Boolean indicating whether the window is docked.

ConversationWindow . . :: . . Left

Gets the coordinate of the left edge of the conversation window, in pixels.

ConversationWindow . . :: . . Top

Gets the coordinate of the top edge of the conversation window, in pixels.

ConversationWindow . . :: . . Width

Gets the width of the conversation window, in pixels.

LyncClient Class

Use the LyncClient . . :: . . GetAutomation method of the Microsoft.Lync.Model . . :: . . LyncClient class to return a Microsoft.Lync.Model.Extensibility . . :: . . Automation object. For more information, see LyncClient Class .