共用方式為


PlanGuide.ValidatePlanGuide 方法 (DataRow%)

Returns whether the plan guide is valid.

命名空間:  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
True if the plan guide is valid; otherwise, false.

備註

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

請參閱

參考

PlanGuide 類別

ValidatePlanGuide 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

設計和實作計畫指南

計畫指南