FileHandler.IsProtected Method

Definition

Overloads

IsProtected(String, MipContext)

Checks whether a file is protected or not.

IsProtected(Stream, String, MipContext)

Checks whether a stream is protected or not.

IsProtected(String, MipContext, Object)

Checks whether a file is protected or not.

IsProtected(Stream, String, MipContext, Object)

Checks whether a stream is protected or not.

IsProtected(String, MipContext)

Checks whether a file is protected or not.

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

Parameters

filePath
String

The file path

mipContext
MipContext

Returns

Applies to

IsProtected(Stream, String, MipContext)

Checks whether a stream is protected or not.

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

Parameters

inputStream
Stream
inputFileName
String
mipContext
MipContext

Returns

Applies to

IsProtected(String, MipContext, Object)

Checks whether a file is protected or not.

public static bool IsProtected (string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member IsProtected : string * Microsoft.InformationProtection.MipContext * obj -> bool
Public Shared Function IsProtected (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

IsProtected(Stream, String, MipContext, Object)

Checks whether a stream is protected or not.

public static bool IsProtected (System.IO.Stream inputStream, string inputFileName, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member IsProtected : System.IO.Stream * string * Microsoft.InformationProtection.MipContext * obj -> bool
Public Shared Function IsProtected (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