|InfoPath Developer Reference|
Version Added: InfoPath 2003
expression An expression that returns a ViewInfo object.
The name of the ViewInfo object is the same as the name of the view that it represents. The name of the ViewInfo object can also be used as the argument to the Item property of the ViewInfos collection.
Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
In the following example, the Name property of the ViewInfo object is used to to display the name of a view in a message box: