共用方式為


ValidateAllPlanGuides 方法 (DataTable)

驗證與資料庫相關之執行計畫的有效性,並傳回驗證報表。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function ValidateAllPlanGuides ( _
    <OutAttribute> ByRef errorInfo As DataTable _
) As Boolean
'用途
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

參數

傳回值

型別:System. . :: . .Boolean
Boolean 值,這個值會判斷所有執行計畫是否有效。

備註

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