Compartir a través de


ValidationController.Validate Method

Definition

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

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

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

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

Returns

Returns true if no error/warning/message are found.

Applies to