FileHandler.IsLabeledOrProtected Method

Definition

Overloads

IsLabeledOrProtected(String, MipContext)

Checks whether a file is labeled/protected or not.

IsLabeledOrProtected(Stream, String, MipContext)

Checks whether a stream is labeled/protected or not.

IsLabeledOrProtected(String, MipContext, Object)

Checks whether a file is labeled/protected or not.

IsLabeledOrProtected(Stream, String, MipContext, Object)

Checks whether a stream is labeled/protected or not.

IsLabeledOrProtected(String, MipContext)

Checks whether a file is labeled/protected or not.

C#
public static bool IsLabeledOrProtected (string filePath, Microsoft.InformationProtection.MipContext mipContext);

Parameters

filePath
String

The file path

mipContext
MipContext

Returns

Applies to

Microsoft.InformationProtection 1.8.94 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.6.152, 1.7.133, 1.8.94

IsLabeledOrProtected(Stream, String, MipContext)

Checks whether a stream is labeled/protected or not.

C#
public static bool IsLabeledOrProtected (System.IO.Stream inputStream, string inputFileName, Microsoft.InformationProtection.MipContext mipContext);

Parameters

inputStream
Stream
inputFileName
String
mipContext
MipContext

Returns

Applies to

Microsoft.InformationProtection 1.8.94 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.6.152, 1.7.133, 1.8.94

IsLabeledOrProtected(String, MipContext, Object)

Checks whether a file is labeled/protected or not.

C#
public static bool IsLabeledOrProtected (string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);

Parameters

filePath
String

The file path

mipContext
MipContext
logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

Applies to

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

IsLabeledOrProtected(Stream, String, MipContext, Object)

Checks whether a stream is labeled/protected or not.

C#
public static bool IsLabeledOrProtected (System.IO.Stream inputStream, string inputFileName, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);

Parameters

inputStream
Stream
inputFileName
String
mipContext
MipContext
logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

Applies to

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