SensitivityLabel.SetLabel method (Office)
Sets the label information on the document for the user.
Note
If the SensitivityLabelPolicy.CompleteInitialize was called, it sets the label for the user that was passed with UserId otherwise sets the label for the user which is authenticated to the document.
Syntax
expression.SetLabel (LabelInfo, Context)
expression A variable that represents a SensitivityLabel object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
LabelInfo | Required | LabelInfo | The label information that needs to be set on the document. |
Context | Required | Object | A caller defined context that can be returned with LabelChanged event to help ensure that the event was raised because of the SetLabel call. |
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.