ValidationController.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Validate(ModelElement, ValidationCategories) |
Do validation for a single element |
Validate(Partition, ValidationCategories) |
Validate the whole store |
Validate(Store, ValidationCategories) |
Validate the whole store |
Validate(IEnumerable<ModelElement>, ValidationCategories) |
Do validation for a set of elements based on the validation categories |
Validate(ModelElement, ValidationCategories)
Do validation for a single element
public:
bool Validate(Microsoft::VisualStudio::Modeling::ModelElement ^ subject, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
public bool Validate (Microsoft.VisualStudio.Modeling.ModelElement subject, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
member this.Validate : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> bool
Public Function Validate (subject As ModelElement, categories As ValidationCategories) As Boolean
Parameters
- subject
- ModelElement
The subject to validate
- categories
- ValidationCategories
Returns
Returns true if no error/warning/message are found.
Applies to
Validate(Partition, ValidationCategories)
Validate the whole store
public:
bool Validate(Microsoft::VisualStudio::Modeling::Partition ^ partition, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
public bool Validate (Microsoft.VisualStudio.Modeling.Partition partition, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
member this.Validate : Microsoft.VisualStudio.Modeling.Partition * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> bool
Public Function Validate (partition As Partition, categories As ValidationCategories) As Boolean
Parameters
- partition
- Partition
- categories
- ValidationCategories
Returns
Returns true if no error/warning/message are found.
Applies to
Validate(Store, ValidationCategories)
Validate the whole store
public:
bool Validate(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
public bool Validate (Microsoft.VisualStudio.Modeling.Store store, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
member this.Validate : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> bool
Public Function Validate (store As Store, categories As ValidationCategories) As Boolean
Parameters
- store
- Store
- categories
- ValidationCategories
Returns
Returns true if no error/warning/message are found.
Applies to
Validate(IEnumerable<ModelElement>, ValidationCategories)
Do validation for a set of elements based on the validation categories
public:
virtual bool Validate(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
public virtual bool Validate (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
abstract member Validate : seq<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> bool
override this.Validate : seq<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> bool
Public Overridable Function Validate (subjects As IEnumerable(Of ModelElement), categories As ValidationCategories) As Boolean
Parameters
- subjects
- IEnumerable<ModelElement>
The list of subjects to validate
- categories
- ValidationCategories
Returns
Returns true if no error/warning/message are found.