Share via


ValidationController.CreateValidationContext Method (IEnumerable<ModelElement>, ValidationCategories)

Creates a validation context for validation of a list of elements.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Protected Overridable Function CreateValidationContext ( _
    subjects As IEnumerable(Of ModelElement), _
    categories As ValidationCategories _
) As ValidationContext
protected virtual ValidationContext CreateValidationContext(
    IEnumerable<ModelElement> subjects,
    ValidationCategories categories
)
protected:
virtual ValidationContext^ CreateValidationContext(
    IEnumerable<ModelElement^>^ subjects, 
    ValidationCategories categories
)
abstract CreateValidationContext : 
        subjects:IEnumerable<ModelElement> * 
        categories:ValidationCategories -> ValidationContext  
override CreateValidationContext : 
        subjects:IEnumerable<ModelElement> * 
        categories:ValidationCategories -> ValidationContext
protected function CreateValidationContext(
    subjects : IEnumerable<ModelElement>, 
    categories : ValidationCategories
) : ValidationContext

Parameters

  • subjects
    Type: IEnumerable<ModelElement>

    Each validation method in any of the specified categories will be applied to each model element in this collection.

Return Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext

.NET Framework Security

See Also

Reference

ValidationController Class

CreateValidationContext Overload

Microsoft.VisualStudio.Modeling.Validation Namespace