Office) (SensitivityLabelInitInfo 对象

表示敏感度标签策略初始化数据对象。

备注

SensitivityLabelInitInfo 对象可以传递给 SensitivityLabelPolicy 对象的 CompleteInitialization 方法。

示例

下面的示例演示 SensitivityLabelInitInfo 对象成员的用法。

Function GetSensitivityLabelsPolicyXml(policyVersion As String)
 Dim myOrgPolicyInXml as String

 ' Set myOrgPolicyInXml based on your organization’s policy based on policyVersion as XML.
 GetSensitivityLabelsPolicyXml = myOrgPolicyInXml
End Function

Dim supportedPolicyVersion As String
Dim myInitInfo As Office.SensitivityLabelInitInfo

supportedPolicyVersion = Application.SensitivityLabelPolicy.BeginInitialize

Set myInitInfo = Application.SensitivityLabelPolicy.CreateSensitivityLabelInitInfo()
myInitInfo.UserId = “someone@example.com”
myInitInfo.SensitivityLabelsPolicyXml = GetSensitivityLabelsPolicyXml(supportedPolicyVersion)

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。