PlanGuide.ValidatePlanGuide Method (DataRow)


Returns whether the plan guide is valid.

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

public bool ValidatePlanGuide(
	out DataRow errorInfo


Type: System.Data.DataRow

the error information.

Return Value

Type: 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.

Return to top