Konstruktor VsValidationContext — (ValidationCategories, IEnumerable<ModelElement>, IServiceProvider, Type)
Konstruktor.
Przestrzeń nazw: Microsoft.VisualStudio.Modeling.Shell
Zestaw: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Składnia
'Deklaracja
Public Sub New ( _
categories As ValidationCategories, _
subjects As IEnumerable(Of ModelElement), _
serviceProvider As IServiceProvider, _
modelExplorerToolWindowType As Type _
)
public VsValidationContext(
ValidationCategories categories,
IEnumerable<ModelElement> subjects,
IServiceProvider serviceProvider,
Type modelExplorerToolWindowType
)
Parametry
- categories
Typ: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories
- subjects
Typ: System.Collections.Generic.IEnumerable<ModelElement>
obiekt, aby sprawdzić poprawność
- serviceProvider
Typ: System.IServiceProvider
- modelExplorerToolWindowType
Typ: System.Type
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..