Application.MachineOnlineState property

Office 2013 and later

Gets the current connection state of the client computer.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract MachineState MachineOnlineState { get; }

Property value

Type: Microsoft.Office.InfoPath.MachineState
One of the MachineState values.

NoteNote

To get the same functionality when using the FormControl , use the MachineOnlineState property of the NetworkState class.

This member can be accessed without restrictions.

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

In the following example, the MachineOnlineState property is used to display the current connection state of the client computer.

MessageBox.Show(this.Application.MachineOnlineState.ToString());
Show: