Delen 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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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

Return Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext

.NET Framework Security

See Also

Reference

ValidationController Class

CreateValidationContext Overload

Microsoft.VisualStudio.Modeling.Validation Namespace