Compartir a través de


Propiedad OrderField.ViewXMLSchemaName (Outlook)

Devuelve un valor de tipo String que representa el nombre del esquema XML para la propiedad que hace referencia el objeto OrderField. Solo lectura.

Sintaxis

expresión. ViewXMLSchemaName

Expresión Variable que representa un objeto OrderField .

Comentarios

El valor de esta propiedad contiene el nombre de la propiedad tal como se incluye en la definición XML de la vista que contiene el objeto ViewField. Este valor no puede coincidir con el nombre que se usa para hacer referencia a la propiedad cuando se definió el objeto OrderField.

Ejemplo:

El ejemplo siguiente Visual Basic para aplicaciones (VBA) se recorre la colección SortFields del objeto TableView actual, y se muestran la etiqueta y los nombres de esquema XML de cada objeto OrderField de la colección.

Private Sub DisplayTableViewSortFields() 
 
 Dim objTableView As TableView 
 
 Dim objOrderField As OrderField 
 
 Dim strOutput As String 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTableView Then 
 
 
 
 ' Obtain a TableView object reference for the 
 
 ' current table view. 
 
 Set objTableView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 ' Iterate through the OrderFields collection for 
 
 ' the table view, obtaining the label and the 
 
 ' XML schema name for each field used to sort 
 
 ' the items in the view. 
 
 For Each objOrderField In objTableView.SortFields 
 
 With objOrderField 
 
 strOutput = strOutput & .ColumnFormat.Label & _ 
 
 " (" & .ViewXMLSchemaName & ")" & vbCrLf 
 
 End With 
 
 Next 
 
 
 
 ' Display a dialog box containing the concatenated 
 
 ' sort field information. 
 
 MsgBox strOutput 
 
 End If 
 
End Sub

Consulte también

Objeto OrderField

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.