Sdílet prostřednictvím


VsValidationController.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:
 override Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ CreateValidationContext(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories);
protected override Microsoft.VisualStudio.Modeling.Validation.ValidationContext CreateValidationContext (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories);
override this.CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.Validation.ValidationCategories -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Protected Overrides 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:
 override Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ CreateValidationContext(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, cli::array <System::String ^> ^ customCategories);
protected override Microsoft.VisualStudio.Modeling.Validation.ValidationContext CreateValidationContext (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, string[] customCategories);
override this.CreateValidationContext : seq<Microsoft.VisualStudio.Modeling.ModelElement> * string[] -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Protected Overrides 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