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 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.

Vous pouvez accéder à ce membre sans restrictions.

Vous pouvez uniquement accéder à ce type ou à ce membre à 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