NetworkState.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 NetworkState
Dim value As MachineState
value = instance.MachineOnlineState
public abstract MachineState MachineOnlineState { get; }
Property Value
Type: Microsoft.Office.InfoPath.MachineState
One of the enumeration 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 InfoPath Filler.
Examples
In the following code example, the MachineOnlineState property is used to display the current connection state of the client computer.
using Microsoft.Office.InfoPath;
string networkState =
formControl1.XmlForm.NetworkState.MachineOnlineState.ToString();
// Display result in a message box.
MessageBox.Show("The connection state is " + networkState);
Imports Microsoft.Office.InfoPath
Dim networkState As String = _
formControl1.XmlForm.NetworkState.MachineOnlineState.ToString()
' Display result in a message box.
MessageBox.Show("The connection state is " & networkState)