NetworkState.MachineOnlineState Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.