ViewInfoCollection.SwitchView Method (String)
Office 2010
Switches the current view to the specified view by name.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Parameters
- name
- Type: System.String
The name of the view to switch to.
| Exception | Condition |
|---|---|
| ArgumentException |
The view name does not exist. |
| InvalidOperationException |
The SwitchView method was called from an event handler for the Loading or ViewSwitched events. |
| ArgumentNullException |
The parameter passed to this method is null. |