IFileHandler.SetProtection Method

Definition

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.

C#
public void SetProtection (Microsoft.InformationProtection.Protection.IProtectionHandler protectionHandler);

Parameters

protectionHandler
IProtectionHandler

Remarks

Changes will not be written to the file until CommitAsync will be called.

Applies to

Microsoft.InformationProtection 1.16.126 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.6.152, 1.7.133, 1.8.94, 1.9.78, 1.10.93, 1.11.53, 1.12.61, 1.13.161, 1.14.108, 1.15.107, 1.16.126

SetProtection(ProtectionDescriptor, ProtectionSettings)

Sets custom permissions to the file.

C#
public void SetProtection (Microsoft.InformationProtection.ProtectionDescriptor protectionDescriptor, Microsoft.InformationProtection.File.ProtectionSettings protectionSettings);

Parameters

protectionDescriptor
ProtectionDescriptor
protectionSettings
ProtectionSettings

Remarks

Changes will not be written to the file until CommitAsync will be called.

Applies to

Microsoft.InformationProtection 1.16.126 och andra versioner
Produkt Versioner
Microsoft.InformationProtection 1.6.152, 1.7.133, 1.8.94, 1.9.78, 1.10.93, 1.11.53, 1.12.61, 1.13.161, 1.14.108, 1.15.107, 1.16.126