Compartir a través de


NetworkState.MachineOnlineState Propiedad

Definición

Obtiene el estado de la conexión del equipo cliente.

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

Valor de propiedad

Uno de los valores de la enumeración.

Ejemplos

En el ejemplo de código siguiente, la MachineOnlineState propiedad se usa para mostrar el estado de conexión actual del equipo cliente.

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)

Comentarios

Se puede acceder a este miembro sin restricciones.

Únicamente se puede acceder a este tipo o miembro desde el código que se ejecuta en los formularios abiertos en Microsoft InfoPath Filler.

Se aplica a