Edit

Share via


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.

public static bool IsLabeledOrProtected (string filePath, Microsoft.InformationProtection.MipContext mipContext);
static member IsLabeledOrProtected : string * Microsoft.InformationProtection.MipContext -> bool
Public Shared Function IsLabeledOrProtected (filePath As String, mipContext As MipContext) As Boolean

Parameters

filePath
String

The file path

mipContext
MipContext

Returns

Applies to

IsLabeledOrProtected(Stream, String, MipContext)

Checks whether a stream is labeled/protected or not.

public static bool IsLabeledOrProtected (System.IO.Stream inputStream, string inputFileName, Microsoft.InformationProtection.MipContext mipContext);
static member IsLabeledOrProtected : System.IO.Stream * string * Microsoft.InformationProtection.MipContext -> bool
Public Shared Function IsLabeledOrProtected (inputStream As Stream, inputFileName As String, mipContext As MipContext) As Boolean

Parameters

inputStream
Stream
inputFileName
String
mipContext
MipContext

Returns

Applies to

IsLabeledOrProtected(String, MipContext, Object)

Checks whether a file is labeled/protected or not.

public static bool IsLabeledOrProtected (string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member IsLabeledOrProtected : string * Microsoft.InformationProtection.MipContext * obj -> bool
Public Shared Function IsLabeledOrProtected (filePath As String, mipContext As MipContext, Optional logContext As Object = Nothing) As Boolean

Parameters

filePath
String

The file path

mipContext
MipContext
logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

Applies to

IsLabeledOrProtected(Stream, String, MipContext, Object)

Checks whether a stream is labeled/protected or not.

public static bool IsLabeledOrProtected (System.IO.Stream inputStream, string inputFileName, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member IsLabeledOrProtected : System.IO.Stream * string * Microsoft.InformationProtection.MipContext * obj -> bool
Public Shared Function IsLabeledOrProtected (inputStream As Stream, inputFileName As String, mipContext As MipContext, Optional logContext As Object = Nothing) As Boolean

Parameters

inputStream
Stream
inputFileName
String
mipContext
MipContext
logContext
Object

Logger context that will be opaquely passed to the logger delegate

Returns

Applies to