Application.MachineOnlineState Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.