ValidationController.Validate 方法

定义

重载

Validate(ModelElement, ValidationCategories)

验证单个元素

Validate(Partition, ValidationCategories)

验证整个应用商店

Validate(Store, ValidationCategories)

验证整个应用商店

Validate(IEnumerable<ModelElement>, ValidationCategories)

基于验证类别对一组元素进行验证

Validate(ModelElement, ValidationCategories)

验证单个元素

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

参数

subject
ModelElement

要验证的主题

返回

Boolean

如果未找到错误/警告/消息,则返回 true。

适用于

Validate(Partition, ValidationCategories)

验证整个应用商店

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

参数

partition
Partition

返回

Boolean

如果未找到错误/警告/消息,则返回 true。

适用于

Validate(Store, ValidationCategories)

验证整个应用商店

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

参数

store
Store

返回

Boolean

如果未找到错误/警告/消息,则返回 true。

适用于

Validate(IEnumerable<ModelElement>, ValidationCategories)

基于验证类别对一组元素进行验证

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

参数

subjects
IEnumerable<ModelElement>

要验证的主题的列表

返回

Boolean

如果未找到错误/警告/消息,则返回 true。

适用于