다음을 통해 공유


ValidationController.Validate Method (IEnumerable<ModelElement>, ValidationCategories)

Apply validation methods to every model element in a list. Methods will be invoked that have a ValidationMethod attribute 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 Overridable Function Validate ( _
    subjects As IEnumerable(Of ModelElement), _
    categories As ValidationCategories _
) As Boolean
public virtual bool Validate(
    IEnumerable<ModelElement> subjects,
    ValidationCategories categories
)
public:
virtual bool Validate(
    IEnumerable<ModelElement^>^ subjects, 
    ValidationCategories categories
)
abstract Validate : 
        subjects:IEnumerable<ModelElement> * 
        categories:ValidationCategories -> bool 
override Validate : 
        subjects:IEnumerable<ModelElement> * 
        categories:ValidationCategories -> bool 
public function Validate(
    subjects : IEnumerable<ModelElement>, 
    categories : ValidationCategories
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ValidationController Class

Validate Overload

Microsoft.VisualStudio.Modeling.Validation Namespace