Partager via


Application.MachineOnlineState, propriété

Obtient l'état de connexion actuel de l'ordinateur client.

Espace de noms :  Microsoft.Office.InfoPath
Assembly :  Microsoft.Office.InfoPath (dans Microsoft.Office.InfoPath.dll)

Syntaxe

'Déclaration
Public MustOverride ReadOnly Property MachineOnlineState As MachineState
    Get
'Utilisation
Dim instance As Application
Dim value As MachineState

value = instance.MachineOnlineState
public abstract MachineState MachineOnlineState { get; }

Valeur de la propriété

Type : Microsoft.Office.InfoPath.MachineState
Valeur MachineState.

Remarques

Notes

Pour obtenir la même fonctionnalité lorsque vous vous servez du FormControl, utilisez la propriété MachineOnlineState de la classe NetworkState.

Ce membre est accessible sans restrictions.

Ce type ou ce membre est accessible uniquement à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler.

Exemples

Dans l'exemple ci-dessous, la propriété MachineOnlineState est utilisée pour afficher l'état de connexion actuel de l'ordinateur client.

MessageBox.Show(this.Application.MachineOnlineState.ToString());
MessageBox.Show(Me.Application.MachineOnlineState.ToString())

Voir aussi

Référence

Application Classe

Application, membres

Microsoft.Office.InfoPath, espace de noms