FileHandler.GetFileStatus 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.
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.
public static Microsoft.InformationProtection.File.IFileStatus GetFileStatus (string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member GetFileStatus : string * Microsoft.InformationProtection.MipContext * obj -> Microsoft.InformationProtection.File.IFileStatus
Public Shared Function GetFileStatus (filePath As String, mipContext As MipContext, Optional logContext As Object = Nothing) As IFileStatus
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
GetFileStatus(Stream, String, MipContext, Object)
Checks whether a file is labeled, protected or contains protected objects.
public static Microsoft.InformationProtection.File.IFileStatus GetFileStatus (System.IO.Stream inputStream, string filePath, Microsoft.InformationProtection.MipContext mipContext, object logContext = default);
static member GetFileStatus : System.IO.Stream * string * Microsoft.InformationProtection.MipContext * obj -> Microsoft.InformationProtection.File.IFileStatus
Public Shared Function GetFileStatus (inputStream As Stream, filePath As String, mipContext As MipContext, Optional logContext As Object = Nothing) As IFileStatus
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