IFileHandler Interface
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.
Interface for all file handling functions.
public interface IFileHandler : IDisposable
type IFileHandler = interface
interface IDisposable
Public Interface IFileHandler
Implements IDisposable
- Implements
Properties
Label |
Retrieve the sensitivity label from the file. |
OutputFileName |
Calculates the output file name and extension based on the original file name and the accumulated changes. |
Protection |
Starts retrieving the protection handler from the file. |
Methods
ClassifyAsync() |
Executes the rules in the engine based on the provided state and returns the list of actions to be executed. |
CommitAsync(Stream) |
Writes the changes to a file stream. |
CommitAsync(String) |
Writes the changes to the file. |
DeleteLabel(LabelingOptions) |
Deletes the sensitivity label from the file. |
GetDecryptedTemporaryFileAsync() |
Create a decrypted temporary file |
GetDecryptedTemporaryStreamAsync() |
Create a decrypted temporary stream |
GetProperties(UInt32) |
Retrieve the properties from the file. |
InspectAsync() |
Create file inspector for the object if possible, useful when trying to inspect (e.g.reading body) supported formats. |
IsModified() |
Finds if there are changes to apply on the file. |
NotifyCommitSuccessful(String) |
To be called when the changes have been committed to disk |
RegisterContentForTrackingAndRevocationAsync(Boolean) |
Register a protected document for tracking and revocation. |
RemoveProtection() |
Removes protection from the file. If the original file format does not support labeling, the label will be lost when protection is removed. When the native format supports labeling, the label metadata is maintained. |
RevokeContentAsync() |
Perform revocation for protected content. |
SetLabel(Label, LabelingOptions, ProtectionSettings) |
Sets the sensitivity label to the file. |
SetProtection(IProtectionHandler) |
Sets custom permissions to the file. |
SetProtection(ProtectionDescriptor, ProtectionSettings) |
Sets custom permissions to the file. |