This section explains how to extend the Windows Home Server platform through the API for Windows Home Server. Each topic covers a single object and provides a short example of how you can use the API to develop your custom application.
Important |
|---|
|
The code samples included in this section are for learning purposes only. You should not use this code in a production environment. |
Before You Begin
In order to write code that extends the Windows Home Server platform, you need to add the appropriate reference to your Visual Studio project.
To add a reference to Microsoft.HomeServer.SDK.Interop.v1.dll:
-
In Visual Studio Solution Explorer, expand your project.
-
Right-click References, and then click Add Reference.
-
On the Add Reference dialog, click Browse, and then navigate to %programfiles%\Windows Home Server\.
-
Select Microsoft.HomeServer.SDK.Interop.v1.dll, and then click OK.
-
Microsoft.HomeServer.SDK.Interop.v1.dll appears in References for your project in Solution Explorer. Additionally, in the Visual Studio Object Browser, Microsoft.HomeServer.SDK.Interop.v1.dll appears.
Also, if you are writing your code in Visual C#, make sure to add a using directive for the Microsoft.HomeServer.SDK.Interop.v1 namespace to your code.
To add a "using" directive to your project:
-
In the Visual Studio Solution Explorer, double-click the class file for your code.
-
Navigate to the top of the file where the using directives are located.
-
Add the following using directive:
using Microsoft.HomeServer.SDK.Interop.v1;
Important |
|---|
|
The Notification API is available for use on Windows clients as well as Windows Home Server for use in the implementation of custom notification applications. |
In this section
The following topics are included in this section:
See Also