Microsoft Information Protection SDK - C++ 1.17
API Reference Documentation for C++
Loading...
Searching...
No Matches
ContentLabel Class Referenceabstract

Abstraction for a Microsoft Information Protection label that is applied to a piece of content, typically a document. More...

#include <content_label.h>

Public Member Functions

virtual std::chrono::time_point< std::chrono::system_clock > GetCreationTime () const =0
 Get the creation time of the label.
 
virtual AssignmentMethod GetAssignmentMethod () const =0
 Get the assignment method of the label.
 
virtual const std::vector< MetadataEntry > & GetExtendedProperties () const =0
 Gets extended properties.
 
virtual bool IsProtectionAppliedFromLabel () const =0
 Gets if protection was applied by the label or not.
 
virtual std::shared_ptr< LabelGetLabel () const =0
 Get the actual label object applied on the content.
 

Detailed Description

Abstraction for a Microsoft Information Protection label that is applied to a piece of content, typically a document.

Note
It also holds properties for a specific applied label instance.

Member Function Documentation

◆ GetAssignmentMethod()

virtual AssignmentMethod ContentLabel::GetAssignmentMethod ( ) const
pure virtual

Get the assignment method of the label.

Returns
AssignmentMethod STANDARD | PRIVILEGED | AUTO.
See also
mip::AssignmentMethod

◆ GetCreationTime()

virtual std::chrono::time_point< std::chrono::system_clock > ContentLabel::GetCreationTime ( ) const
pure virtual

Get the creation time of the label.

Returns
Creation time.

◆ GetExtendedProperties()

virtual const std::vector< MetadataEntry > & ContentLabel::GetExtendedProperties ( ) const
pure virtual

Gets extended properties.

Returns
Extended properties.

◆ GetLabel()

virtual std::shared_ptr< Label > ContentLabel::GetLabel ( ) const
pure virtual

Get the actual label object applied on the content.

Returns
the label object applied on the content.
See also
mip::Label

◆ IsProtectionAppliedFromLabel()

virtual bool ContentLabel::IsProtectionAppliedFromLabel ( ) const
pure virtual

Gets if protection was applied by the label or not.

Returns
true if there is protection and it was by this label, else false.

The documentation for this class was generated from the following file: