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
- subjects
Type: System.Collections.Generic.IEnumerable<ModelElement>
The list of elements to validate
- categories
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories
Specifies which validation methods will 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.