Compartir a través de


Objeto LabelInfo (Office)

Representa el objeto de datos de información de etiqueta.

Comentarios

El objeto LabelInfo se puede pasar al método SetLabel del objeto SensitivityLabel .

Ejemplo:

En el ejemplo siguiente se muestra el uso de miembros del objeto LabelInfo .

Sub SetLabelInfo()

 Dim myLabelInfo As Office.LabelInfo
 Set myLabelInfo = Application.ActiveDocument.SensitivityLabel.CreateLabelInfo()
 With myLabelInfo
  .ActionId = "5cc46055-305d-4bc1-8f5f-5edf82231378"
  .AssignmentMethod = MsoAssignmentMethod.PRIVILEGED
  .ContentBits = 4
  .IsEnabled = True
  .Justification = "Some justification needed only if downgrading label."
  .LabelId = "9203368f-916c-4d59-8292-9f1c6a1e8f39"
  .LabelName = "MyLabelName"
  .SetDate = Now()
  .SiteId = "6c15903a-880e-4e17-818a-6cb4f7935615"
 End With

End Sub

Consulte también

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.