Share via


VsValidationContext Constructor (ValidationCategories, IEnumerable<ModelElement>, IServiceProvider)

Constructor.

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

Syntax

'Declaration
Public Sub New ( _
    categories As ValidationCategories, _
    subjects As IEnumerable(Of ModelElement), _
    serviceProvider As IServiceProvider _
)
public VsValidationContext(
    ValidationCategories categories,
    IEnumerable<ModelElement> subjects,
    IServiceProvider serviceProvider
)
public:
VsValidationContext(
    ValidationCategories categories, 
    IEnumerable<ModelElement^>^ subjects, 
    IServiceProvider^ serviceProvider
)
new : 
        categories:ValidationCategories * 
        subjects:IEnumerable<ModelElement> * 
        serviceProvider:IServiceProvider -> VsValidationContext
public function VsValidationContext(
    categories : ValidationCategories, 
    subjects : IEnumerable<ModelElement>, 
    serviceProvider : IServiceProvider
)

Parameters

  • subjects
    Type: IEnumerable<ModelElement>

    object to be validated

  • serviceProvider
    Type: IServiceProvider

.NET Framework Security

See Also

Reference

VsValidationContext Class

VsValidationContext Overload

Microsoft.VisualStudio.Modeling.Shell Namespace