Partilhar via


Método ValidatePlanGuide (DataRow)

Returns True if a plan guide is valid; othewise, False. Also returns a data table row that contains error information.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Function ValidatePlanGuide ( _
    <OutAttribute> ByRef errorInfo As DataRow _
) As Boolean
'Uso
Dim instance As PlanGuide
Dim errorInfo As DataRow
Dim returnValue As Boolean

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

Parâmetros

Valor de retorno

Tipo: System. . :: . .Boolean
Boolean

Comentários

By reading the value of the out parameter from the errorInfo table error, information regarding the Plan Guide can be evaluated.