IFileHandler.SetLabel(Label, LabelingOptions, ProtectionSettings) Method

Definition

Sets the sensitivity label to the file.

C#
public void SetLabel (Microsoft.InformationProtection.Label label, Microsoft.InformationProtection.File.LabelingOptions labelingOptions, Microsoft.InformationProtection.File.ProtectionSettings protectionSettings);

Parameters

label
Label
labelingOptions
LabelingOptions
protectionSettings
ProtectionSettings

Remarks

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

Will throw a JustificationRequiredError when setting the label requires the operation to be justified (via the labelingOptions parameter).

Applies to

Продукт Версії
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