Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Microsoft Information Protection SDK .NET Wrapper enables developers to integrate the Microsoft Purview Information Protection experience in to their own applications and services. The SDK's classification, labeling, and protection features help to ensure that information is classified, labeled, and protected no matter where it travels.
The managed wrapper and all dependencies can be installed via NuGet in Visual Studio.
Supported Platforms
The Microsoft Information Protection .NET Wrapper is supported on the following .NET platforms:
- .NET Standard 2.0
- .NET 4.0
Installing the Package
From the Package Manager Console in Visual Studio 2017, install the package by running:
install-package Microsoft.InformationProtection.File
No additional packages are required. All of the third-party libraries are included and will copy to the output folder on build.
Wrapper Details
The .NET wrapper is a SWIG generated managed wrapper. The wrapper uses compiled C++ libraries from the Microsoft Information Protection SDK. These DLLs are the same DLLs that are included with the C++ version of the SDK.
Concept Overlap
There are a few fundamental differences between the C++ version of the SDK and the managed wrapper.
- The .NET wrapper doesn't require the use of Observers for async operations. Any asynchronous operations are implemented via the Task-based Asynchronous Pattern.
- The .NET wrapper does require the delegates that are part of the C++ SDK: AuthDelegate and ConsentDelegate. These delegates are implemented via the interfaces
IAuthDelegate
andIConsentDelegate
Next Steps
Next, review Quickstart - Initialization for Microsoft Information Protection (MIP) SDK C# to get started on building a basic, MIP-enabled console application.