IFileHandler.SetProtection 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
SetProtection(IProtectionHandler) |
Sets custom permissions to the file. |
SetProtection(ProtectionDescriptor, ProtectionSettings) |
Sets custom permissions to the file. |
SetProtection(IProtectionHandler)
Sets custom permissions to the file.
public void SetProtection (Microsoft.InformationProtection.Protection.IProtectionHandler protectionHandler);
abstract member SetProtection : Microsoft.InformationProtection.Protection.IProtectionHandler -> unit
Public Sub SetProtection (protectionHandler As IProtectionHandler)
Parameters
- protectionHandler
- IProtectionHandler
Remarks
Changes will not be written to the file until CommitAsync will be called.
Applies to
SetProtection(ProtectionDescriptor, ProtectionSettings)
Sets custom permissions to the file.
public void SetProtection (Microsoft.InformationProtection.ProtectionDescriptor protectionDescriptor, Microsoft.InformationProtection.File.ProtectionSettings protectionSettings);
abstract member SetProtection : Microsoft.InformationProtection.ProtectionDescriptor * Microsoft.InformationProtection.File.ProtectionSettings -> unit
Public Sub SetProtection (protectionDescriptor As ProtectionDescriptor, protectionSettings As ProtectionSettings)
Parameters
- protectionDescriptor
- ProtectionDescriptor
- protectionSettings
- ProtectionSettings
Remarks
Changes will not be written to the file until CommitAsync will be called.