Application.MachineOnlineState property

Gets the current connection state of the client computer.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property MachineOnlineState As MachineState
    Get
'Usage
Dim instance As Application
Dim value As MachineState

value = instance.MachineOnlineState
public abstract MachineState MachineOnlineState { get; }

Property value

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

Remarks

Note

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.

Examples

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());
MessageBox.Show(Me.Application.MachineOnlineState.ToString())

See also

Reference

Application class

Application members

Microsoft.Office.InfoPath namespace