如何在C#中设置Azure信息保护属性 [英] How to set Azure Information Protect property in C#

查看:67
本文介绍了如何在C#中设置Azure信息保护属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,该应用程序可以在C#中使用互操作发送电子邮件,我需要在发送电子邮件时设置Azure信息保护属性,我在线上看过,但似乎找不到任何可靠的答案.

即使向我指明了正确的方向,任何帮助也将不胜感激.

解决方案

将标签应用于文档或电子邮件时,在标签的下面,标签存储在元数据中,以便应用程序和服务可以读取标签:

  • 在电子邮件中,此信息存储在x标头中: msip_labels:MSIP_Label_< GUID> _Enabled = True;

  • 对于Word文档(.doc和.docx),Excel电子表格(.xls和.xlsx),PowerPoint演示文稿(.ppt和.pptx)和PDF文档,此元数据存储在以下自定义属性中: MSIP_Label_< GUID> _Enabled = True

对于电子邮件,标签信息在发送电子邮件时存储.对于文档,标签信息是在保存文件时存储的.

要标识标签的GUID,请在查看或配置Azure信息保护策略时在Azure门户中的标签"刀片上找到标签ID"值.对于已应用标签的文件,您还可以运行 Get-AIPFileStatus PowerShell cmdlet来标识GUID( MainLabelId SubLabelId ).当标签具有子标签时,请始终仅指定子标签而不是父标签的GUID.

配置Azure信息保护中了解有关此内容的更多信息政策文章.

I have an app that sends an email using interop in C#, I need to set the Azure Information Protection property when sending the email, I've had a look online but can't seem to find any solid answers.

Any help would be really appreciated even if it's pointing me in the right direction.

解决方案

When a label is applied to a document or email, under the covers, the label is stored in metadata so that applications and services can read the label:

  • In emails, this information is stored in the x-header: msip_labels: MSIP_Label_<GUID>_Enabled=True;

  • For Word documents (.doc and .docx), Excel spreadsheets (.xls and .xlsx), PowerPoint presentations (.ppt and .pptx), and PDF documents, this metadata is stored in the following custom property: MSIP_Label_<GUID>_Enabled=True

For emails, the label information is stored when the email is sent. For documents, the label information is stored when the file is saved.

To identify the GUID for a label, locate the Label ID value on the Label blade in the Azure portal, when you view or configure the Azure Information Protection policy. For files that have labels applied, you can also run the Get-AIPFileStatus PowerShell cmdlet to identify the GUID (MainLabelId or SubLabelId). When a label has sublabels, always specify the GUID of just a sublabel and not the parent label.

Read more about that in the Configuring the Azure Information Protection policy article.

这篇关于如何在C#中设置Azure信息保护属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆