ValidationController.Validate Method (ModelElement, ValidationCategories)
Do validation for a single element, invoking validation methods that have ValidationMethod attributes for one or more of the specified validation categories.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Function Validate ( _
subject As ModelElement, _
categories As ValidationCategories _
) As Boolean
public bool Validate(
ModelElement subject,
ValidationCategories categories
)
public:
bool Validate(
ModelElement^ subject,
ValidationCategories categories
)
member Validate :
subject:ModelElement *
categories:ValidationCategories -> bool
public function Validate(
subject : ModelElement,
categories : ValidationCategories
) : boolean
Parameters
- subject
Type: Microsoft.VisualStudio.Modeling.ModelElement
The subject to validate
- categories
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories
Specifies which validation methods should be invoked.
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.