ValidationController.CreateValidationContext 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
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
- subjects
- IEnumerable<ModelElement>
- categories
- ValidationCategories
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
- subjects
- IEnumerable<ModelElement>
- customCategories
- String[]
A list of custom specified string. This allows the validation method with the given string to be validated.