title | description | author | ms.service | ms.topic | ms.author | ms.date |
---|---|---|---|---|---|---|
class Label |
Documents the label::undefined class of the Microsoft Information Protection (MIP) SDK. |
msmbaldwin |
information-protection |
reference |
mbaldwin |
11/15/2021 |
Abstraction for a single Microsoft Information Protection label.
Members | Descriptions |
---|---|
public const std::string& GetId() const | Get the label ID. |
public const std::string& GetName() const | Get the label name. |
public const std::string& GetDescription() const | Get the label description. |
public const std::string& GetColor() const | Get the color the label should be displayed. |
public int GetSensitivity() const | Get the Sensitivity of the label. |
public const std::string& GetTooltip() const | Get the tooltip description of the label. |
public const std::string& GetAutoTooltip() const | Get the tooltip description of the classification that cause this label to be applied. |
public bool IsActive() const | Gets a boolean signaling if the label is active. |
public std::weak_ptr<Label> GetParent() const | Get the parent label. |
public const std::vector<std::shared_ptr<Label>>& GetChildren() const | Get the children labels of the current label. |
public const std::vector<std::pair<std::string, std::string>>& GetCustomSettings() const | Get the custom settings of a label. |
public ActionSource GetActionSource() const | Gets the action source of the label. |
public const std::vector<std::string>& GetContentFormats() const | Gets content types. |
Get the label ID.
Returns: The label ID.
Get the label name.
Returns: The label name.
Get the label description.
Returns: The label description.
Get the color the label should be displayed.
Returns: Color value the string format. "#RRGGBB" where each of RR, GG, BB is a hexadecimal 0-f.
Get the Sensitivity of the label.
Returns: A numerical value. Higher value defines higher Sensitivity.
Get the tooltip description of the label.
Returns: A tooltip string.
Get the tooltip description of the classification that cause this label to be applied.
Returns: A tooltip string.
Gets a boolean signaling if the label is active. Only active labels can be applied. Inactive labels cannot be applied, and are used for display purposes only.
Returns: True if label is active, else false.
Get the parent label.
Returns: A weak pointer to the parent label if exists else an empty pointer.
Get the children labels of the current label.
Returns: A vector of shared pointers to labels.
Get the custom settings of a label.
Returns: A vector of key value pairs representing custom settings.
Gets the action source of the label.
Returns: Action source
Gets content types.
s>