Partager via


IWDTFSystemAction2 ::IsRestartedWithContext, méthode (wdtfsystemaction.h)

Obtient une valeur qui indique si le script de test a été redémarré pour un contexte spécifique.

Syntaxe

HRESULT IsRestartedWithContext(
  [in]          BSTR         psContextName,
  [out, retval] VARIANT_BOOL *pbIsRestarted
);

Paramètres

[in] psContextName

Nom du contexte.

[out, retval] pbIsRestarted

True si le script a été redémarré avec le contexte ; sinon, false.

Valeur de retour

Si cette méthode réussit, elle retourne S_OK. Sinon, elle retourne un HRESULT code d’erreur.

Exigences

Exigence Valeur
client minimum pris en charge Windows XP Professionnel
serveur minimum pris en charge Windows Server 2008
plateforme cible Windows
d’en-tête wdtfsystemaction.h

Voir aussi

IWDTFSystemAction2