Partager via


Application.MachineOnlineState Propriété

Définition

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

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

Valeur de propriété

Une des MachineState valeurs.

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())

Remarques

Remarque : Pour obtenir les mêmes fonctionnalités lors de l’utilisation de FormControl , utilisez la MachineOnlineState propriété de la NetworkState classe .

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.

S’applique à