Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ViewInfo.Name property

Gets the name of the view that is associated with the ViewInfo object.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
public abstract string Name { get; }

Property value

Type: System.String
The name of the view that is associated with the 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[String] property of the ViewInfoCollection class.

This member can be accessed without restrictions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

In the following example, the Name property of the ViewInfo class is used to display the name of the first view in the ViewInfoCollection in a message box.

ViewInfo myViewInfo = this.ViewInfos[0];
MessageBox.Show("View name: " + myViewInfo.Name);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.