ValidationController.Validate Method (Partition, ValidationCategories)
Apply validation to every element in the specified partition, invoking validation methods that have ValidationMethod attributes for one or more of the specified categories.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public Function Validate ( _
partition As Partition, _
categories As ValidationCategories _
) As Boolean
public bool Validate(
Partition partition,
ValidationCategories categories
)
public:
bool Validate(
Partition^ partition,
ValidationCategories categories
)
member Validate :
partition:Partition *
categories:ValidationCategories -> bool
public function Validate(
partition : Partition,
categories : ValidationCategories
) : boolean
Parameters
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
Partition in which to apply validation.
- categories
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories
Specifies which validation methods to apply.
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.