Share via


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
'Usage

Property Value

One of the MachineState values.

Remarks

This member can be accessed without restrictions.

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

Example

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