ValidatePlanGuide 方法 (DataRow)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function ValidatePlanGuide ( _
    <OutAttribute> ByRef errorInfo As DataRow _
) As Boolean
用法
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

参数

返回值

类型:System. . :: . .Boolean
Boolean

注释

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