Export (0) Print
Expand All

Search for chat rooms (SampleSearchRooms)

Lync 2013

Learn about the Microsoft Lync Server 2013 Persistent Chat SDK SampleSearchRooms application.

Last modified: August 16, 2013

Applies to: Lync 2013 | Lync Server 2013

In this article
To set up the project in Visual Studio 2010
To add the source code to the project
Requirements

Note Note

By default, the SampleSearchRooms application is copied to the %ProgramFile%\Microsoft Lync Server 2013\Persistent Chat SDK\SampleSearchRooms folder. SampleSearchRooms and related code samples can also be downloaded from the MSDN Code Gallery.

This sample application publishes your user colors and subscribes to the user colors of another user. This sample application demonstrates how to search for chat rooms using the Microsoft Lync Server 2013 Persistent Chat API.

  1. On the Microsoft Visual Studio 2010 File menu, point to New, and then choose Project.

  2. In the Project types pane, choose Visual C#, and then choose Windows.

  3. In the Templates pane, choose Console Application.

  4. In the Name box, type the name of the project, and then click OK. Visual Studio creates a new project.

  5. In the Solution Explorer, right-click Properties under the newly created project, and then click Open.

  6. In the newly opened Properties tab in Visual Studio main window, set Platform target to either x64 or AnyCPU under the Build option, and then set Target framework to .NET Framework 4 under the Application option.

  7. In the Solution Explorer, right-click References under the newly created project, and then select Add Reference.

  8. Select the Browse tab, navigate to the Lync Server 2013 Persistent Chat SDK installation directory, and then the select Microsoft.Rtc.Collaboration.DLL and Microsoft.Rtc.Collaboration.PersistentChat.DLL assembly files.

  1. Replace Program.cs with the SampleSearchRooms.cs.

  2. Add SampleCommon.cs to the project.

  3. Press F5 to run the application in Debug mode.

  • Microsoft Visual Studio 2010 or Visual Studio 2012 development system

  • .NET Framework 4.5 (installed automatically with Visual Studio 2012 or separately with Visual Studio 2010)

  • UcmaRedist.msi

  • UcgcRedist.msi

Show:
© 2015 Microsoft