MIP.Initialize(MipComponent, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads the MIP dlls needed for UPE
public static void Initialize (Microsoft.InformationProtection.MipComponent mipComponent, string path = default);
static member Initialize : Microsoft.InformationProtection.MipComponent * string -> unit
Public Shared Sub Initialize (mipComponent As MipComponent, Optional path As String = Nothing)
Parameters
- mipComponent
- MipComponent
The path where the MIP dlls are located. May be set to null if the MIP dlls are in the search path.
- path
- String
The path where the MIP dlls are located. May be set to null if the MIP dlls are in the search path.
Remarks
path
only needs to be set, if the mip dlls are in a different folder than where the .Net assembly is located, or in a Non standard location.
Standard location include the current folder, or "x64" subfolder of the current folder for 64 bit applications and "x86" subfolder of the current folder for 32 bit applications.
In a non standard case a sample use would be:
var subDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\" + (Environment.Is64BitProcess ? "x64SubFolder" : "x86SubFOlder");
var factory = MIP.Initialize(MipComponent.Policy, subDir);