IPolicyHandler.GetSensitivityLabel(ExecutionState) 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.
Get the sensitivity label from existing content.
public Microsoft.InformationProtection.ContentLabel GetSensitivityLabel (Microsoft.InformationProtection.Policy.ExecutionState state);
abstract member GetSensitivityLabel : Microsoft.InformationProtection.Policy.ExecutionState -> Microsoft.InformationProtection.ContentLabel
Public Function GetSensitivityLabel (state As ExecutionState) As ContentLabel
Parameters
- state
- ExecutionState
Provides required information to retrieve the label.
Returns
A content label object that contains the sensitivity label as well as additional information, or return empty if non exists.