Hello @정용우
Thanks for the question and using MS Q&A platform.
The IsLabeled function in the MIP SDK is designed to check if a file has a label applied, but it may return true even when the Label value is null due to several reasons. One possible scenario is that the file may have been marked as labeled in the metadata, but the actual label information might not be accessible or intact.
This can happen if the label was previously applied and then removed or if the metadata has become corrupted or incomplete. The SDK relies on the metadata to determine the labeling state, and if the metadata indicates that a label was applied, IsLabeled will return true, even if the actual label data is not present.
It's important to ensure that the file's metadata is intact and that the label being read still exists in the Microsoft 365 service. If the label has been deleted or if the metadata is not properly maintained, it could lead to this inconsistency.
References:
- Microsoft Information Protection SDK - File handler concepts
- Microsoft Information Protection (MIP) SDK FAQs and issues
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click `Accept Answer`
and `Yes`
for was this answer helpful. And, if you have any further query do let us know.