SensitivityLabelInitInfo object (Office)
Represents the sensitivity label policy initialization data object.
Remarks
The SensitivityLabelInitInfo object can be passed to CompleteInitialization method of SensitivityLabelPolicy object.
Example
The following example shows the usage of members of SensitivityLabelInitInfo object.
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)
See also
- SensitivityLabelInitInfo object members
- SensitivityLabelPolicy object members
- Object Model Reference
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.