Windows 市集設定Windows Store setup

重要

2020年3月之前發行的 Microsoft Rights Management Service SDK 版本已被取代;使用舊版的應用程式必須更新為使用2020年3月版本。Versions of the Microsoft Rights Management Service SDK released prior to March 2020 are deprecated; applications using earlier versions must be updated to use the March 2020 release. 如需完整的詳細資訊,請參閱淘汰 通知For full details, see the deprecation notice.

Microsoft Rights Management Service SDK 尚未規劃任何進一步的增強功能。No further enhancements are planned for the Microsoft Rights Management Service SDK. 我們強烈建議採用 Microsoft 資訊保護 SDK 來進行分類、標記和保護服務。We strongly recommend adoption of the Microsoft Information Protection SDK for classification, labeling, and protection services.

Microsoft Store 應用程式可以藉由使用 Azure Active Directory Rights Management (AAD RM),來使用 Microsoft Rights Management SDK 4.2 以在其應用程式中啟用整合式資訊保護。Windows Store applications can use the Microsoft Rights Management SDK 4.2 to enable integrated information protection in their application by using the Azure Active Directory Rights Management (AAD RM).

本主題將引導您設定您的環境,以建立您自己的新應用程式。This topic will guide you through setting up your environment for creating your own new apps.

必要條件Prerequisites

您的開發系統必須使用下列軟體︰You must have the following software on your development system:

如需 API 更新、裝置和環境資訊、版本資訊和常見問題集 (FAQ) 的相關資訊,請參閱最新消息Read the What's new topic for information on API updates, device and environment information, release notes and frequently asked questions (FAQ).

選擇性Optional

我們的 UI 程式庫提供可重複使用的 UI,適用於不想要建立其自己的自訂 UI 之開發人員的耗用和保護作業 - 適用於 Windows 市集應用程式的 UI 程式庫Our UI library provides re-usable UI for consumption and protection operations for developers who don’t want to create their own custom UI - UI Library for Windows Store apps. 我們也提供 Windows 市集應用程式範例應用程式- 適用於 Windows 市集的 RMS 範例應用程式We also provide a Windows Store app sample application - RMS Sample application for Windows Store.

設定您的開發環境Configuring your development environment

  • 開啟 Visual Studio。Open Visual Studio.

  • 依序按一下 [檔案][新增],然後按一下 [專案]Click File, click New, and then click Project.

  • 在 [新增專案] 對話方塊中,按一下 [ Visual # C ],然後選取 [ (Windows) 空白應用程式],然後按一下 [確定]In the New Project dialog box, click Visual C# and select Blank App (Windows) then click OK.

    建立新專案

  • 在 [方案總管] 中,以滑鼠右鍵按一下您的專案,然後選取 [新增參考] 以開啟 [新增參考] 對話方塊。In Solution Explorer, right-click your project, and select Add Reference to open the Add Reference dialog box.

    新增參考

  • 在 [新增參考] 對話方塊中,按一下 [瀏覽],選取位於您解壓縮 SDK 封裝的資料夾中的 Microsoft.RightsManagement.dll 檔案。In the Add Reference dialog box, click Browse and select the Microsoft.RightsManagement.dll file that is located in the folder you extracted the SDK package in.

  • 受控應用 程式-若要建立受管理的應用程式,您必須新增此參考;選取 [ Windows 8.1 - > 擴充 功能],並勾選適用于 windows 的 windows Visual C++ 執行時間套件 核取方塊Managed Apps - For building a managed app, you will have to add this reference; select Windows 8.1->Extensions and check the box for Windows Visual C++ Runtime Package for Windows

    新增延伸模組

  • 新增功能 - 您的應用程式將需要使用 SDK 的「網際網路 (用戶端和伺服器)」功能。Adding Capabilities - Your application will need "Internet (Client & Server)" capability to use the SDK. 若要將這項功能加入您的應用程式,請開啟專案中的 Package.appxmanifest 檔案,瀏覽至 [功能] 索引標籤以新增功能。To add this capability to your app, open the Package.appxmanifest file in the project and navigate to the Capabilities tab to add.

您現在已準備好建立您自己的新 Windows 市集應用程式。You are now ready to create your own new Windows Store apps.

另請參閱See Also

開始使用Get started

新功能What's new

開發人員詞彙和概念Developer terms and concepts

Windows 8Windows 8

Visual Studio 2012Visual Studio 2012

Windows API 參考Windows API Reference