NetworkState.MachineOnlineState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current connection state of the client computer.
public:
abstract property Microsoft::Office::InfoPath::MachineState MachineOnlineState { Microsoft::Office::InfoPath::MachineState get(); };
public abstract Microsoft.Office.InfoPath.MachineState MachineOnlineState { get; }
member this.MachineOnlineState : Microsoft.Office.InfoPath.MachineState
Public MustOverride ReadOnly Property MachineOnlineState As MachineState
Property Value
One of the enumeration values.
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)
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.