Compartir a través de


VsValidationController.CreateValidationContext Method (IEnumerable<ModelElement>, array<String )

Provide a context class for the validation

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaración
Protected Overrides Function CreateValidationContext ( _
    subjects As IEnumerable(Of ModelElement), _
    customCategories As String() _
) As ValidationContext
protected override ValidationContext CreateValidationContext(
    IEnumerable<ModelElement> subjects,
    string[] customCategories
)
protected:
virtual ValidationContext^ CreateValidationContext(
    IEnumerable<ModelElement^>^ subjects, 
    array<String^>^ customCategories
) override
abstract CreateValidationContext : 
        subjects:IEnumerable<ModelElement> * 
        customCategories:string[] -> ValidationContext 
override CreateValidationContext : 
        subjects:IEnumerable<ModelElement> * 
        customCategories:string[] -> ValidationContext 
protected override function CreateValidationContext(
    subjects : IEnumerable<ModelElement>, 
    customCategories : String[]
) : ValidationContext

Parameters

  • customCategories
    Type: array<System.String[]
    A list of custom specified string. This allows the validation method with the given string to be validated.

Return Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext

.NET Framework Security

See Also

Reference

VsValidationController Class

CreateValidationContext Overload

Microsoft.VisualStudio.Modeling.Shell Namespace