FileHandler.GetFileStatus Method

Definition

Overloads

GetFileStatus(String, MipContext, Object)

Checks whether a file is labeled, protected or contains protected objects.

GetFileStatus(Stream, String, MipContext, Object)

Checks whether a file is labeled, protected or contains protected objects.

GetFileStatus(String, MipContext, Object)

Checks whether a file is labeled, protected or contains protected objects.

C#
public static Microsoft.InformationProtection.File.IFileStatus GetFileStatus (string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);

Parameters

filePath
String

Path of file to check

mipContext
MipContext

Global MIP context state

logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

a FileStatus object

Applies to

Microsoft.InformationProtection 1.16.126 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.10.93, 1.11.53, 1.12.61, 1.13.161, 1.14.108, 1.15.107, 1.16.126

GetFileStatus(Stream, String, MipContext, Object)

Checks whether a file is labeled, protected or contains protected objects.

C#
public static Microsoft.InformationProtection.File.IFileStatus GetFileStatus (System.IO.Stream inputStream, string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);

Parameters

inputStream
Stream

Stream containing file data to check

filePath
String

File path associated with data in 'inputStream'

mipContext
MipContext

Global MIP context state

logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

a FileStatus object

Applies to

Microsoft.InformationProtection 1.16.126 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.10.93, 1.11.53, 1.12.61, 1.13.161, 1.14.108, 1.15.107, 1.16.126