Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Sub New ( _
categories As ValidationCategories, _
subject As ModelElement, _
serviceProvider As IServiceProvider, _
modelExplorerToolWindowType As Type _
)
'使用
Dim categories As ValidationCategories
Dim subject As ModelElement
Dim serviceProvider As IServiceProvider
Dim modelExplorerToolWindowType As Type
Dim instance As New VsValidationContext(categories, _
subject, serviceProvider, modelExplorerToolWindowType)
public VsValidationContext(
ValidationCategories categories,
ModelElement subject,
IServiceProvider serviceProvider,
Type modelExplorerToolWindowType
)
public:
VsValidationContext(
ValidationCategories categories,
ModelElement^ subject,
IServiceProvider^ serviceProvider,
Type^ modelExplorerToolWindowType
)
public function VsValidationContext(
categories : ValidationCategories,
subject : ModelElement,
serviceProvider : IServiceProvider,
modelExplorerToolWindowType : Type
)
Parameters
- categories
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationCategories
- subject
Type: Microsoft.VisualStudio.Modeling.ModelElement
- serviceProvider
Type: System.IServiceProvider
- modelExplorerToolWindowType
Type: System.Type
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.