View2.SwitchView(String) Method

Definition

Changes the active view of a Microsoft InfoPath form to a specified view.

C#
public void SwitchView (string bstrName);

Parameters

bstrName
String

The name of the view to switch to. If an empty string is used, the default view is displayed.

Implements

Examples

thisXDocument.View.<span class="label">SwitchView</span>("");

Remarks

If an empty string is used as the bstrName parameter, the view is changed to the default view of the form.

Important: This member 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.

Applies to

Prodotto Versioni
InfoPath external automation Latest