Freigeben über


ValidationController.CreateValidationContext Method

Definition

Overloads

CreateValidationContext(IEnumerable<ModelElement>, ValidationCategories)

Provide a context class for the validation

CreateValidationContext(IEnumerable<ModelElement>, String[])

Provide a context class for the validation

CreateValidationContext(IEnumerable<ModelElement>, ValidationCategories)

Provide a context class for the validation

protected:
 virtual Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ CreateValidationContext(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
protected virtual Microsoft.VisualStudio.Modeling.Validation.ValidationContext CreateValidationContext (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
abstract member CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
override this.CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Protected Overridable Function CreateValidationContext (subjects As IEnumerable(Of ModelElement), categories As ValidationCategories) As ValidationContext

Parameters

Returns

Applies to

CreateValidationContext(IEnumerable<ModelElement>, String[])

Provide a context class for the validation

protected:
 virtual Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ CreateValidationContext(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, cli::array <System::String ^> ^ customCategories);
protected virtual Microsoft.VisualStudio.Modeling.Validation.ValidationContext CreateValidationContext (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, string[] customCategories);
abstract member CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * string[] -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
override this.CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * string[] -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Protected Overridable Function CreateValidationContext (subjects As IEnumerable(Of ModelElement), customCategories As String()) As ValidationContext

Parameters

customCategories
String[]

A list of custom specified string. This allows the validation method with the given string to be validated.

Returns

Applies to