Search for chat rooms (SampleSearchRooms)
Learn about the Microsoft Lync Server 2013 Persistent Chat SDK SampleSearchRooms application.
Applies to: Lync 2013 | Lync Server 2013
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.
To set up the project in Visual Studio 2010
On the Microsoft Visual Studio 2010 File menu, point to New, and then choose Project.
In the Project types pane, choose Visual C#, and then choose Windows.
In the Templates pane, choose Console Application.
In the Name box, type the name of the project, and then click OK. Visual Studio creates a new project.
In the Solution Explorer, right-click Properties under the newly created project, and then click Open.
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.
In the Solution Explorer, right-click References under the newly created project, and then select Add Reference.
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.
To add the source code to the project
Replace Program.cs with the SampleSearchRooms.cs.
Add SampleCommon.cs to the project.
Press F5 to run the application in Debug mode.
Requirements
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
See also
Concepts
Learn the basics of Lync Server 2013 Persistent Chat SDK
How to use Persistent Chat API (Lync Server 2013 Persistent Chat SDK)
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for