Share via


Méthode ValidateAllPlanGuides (DataTable)

Vérifie la validité des plans d'exécution associés à la base de données et retourne le rapport de validation.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Function ValidateAllPlanGuides ( _
    <OutAttribute> ByRef errorInfo As DataTable _
) As Boolean
'Utilisation
Dim instance As Database
Dim errorInfo As DataTable
Dim returnValue As Boolean

returnValue = instance.ValidateAllPlanGuides(errorInfo)
public bool ValidateAllPlanGuides(
    out DataTable errorInfo
)
public:
bool ValidateAllPlanGuides(
    [OutAttribute] DataTable^% errorInfo
)
member ValidateAllPlanGuides : 
        errorInfo:DataTable byref -> bool 
public function ValidateAllPlanGuides(
    errorInfo : DataTable
) : boolean

Paramètres

  • errorInfo
    Type : System.Data. . :: . .DataTable%
    Référence à la valeur de l'objet DataTable qui contient des informations détaillées sur les erreurs de validation de chaque plan d'exécution associé à la base de données.

Valeur de retour

Type : System. . :: . .Boolean
Valeur Boolean qui détermine si tous les plans d'exécution sont valides.

Notes

If the method is unsuccessful, you can run the method again with the output parameter that contains detailed information about each execution plan.