Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Constructor.
Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
    customCategories As String(), _
    subject As ModelElement, _
    serviceProvider As IServiceProvider _
)
public VsValidationContext(
    string[] customCategories,
    ModelElement subject,
    IServiceProvider serviceProvider
)
public:
VsValidationContext(
    array<String^>^ customCategories, 
    ModelElement^ subject, 
    IServiceProvider^ serviceProvider
)
new : 
        customCategories:string[] * 
        subject:ModelElement * 
        serviceProvider:IServiceProvider -> VsValidationContext
public function VsValidationContext(
    customCategories : String[], 
    subject : ModelElement, 
    serviceProvider : IServiceProvider
)
Parameters
- customCategories 
 Type: array<System.String[]- A list of custom specified string. This allows the validation method with the given string to be validated. 
- subject 
 Type: Microsoft.VisualStudio.Modeling.ModelElement- root object to be validated 
- serviceProvider
 Type: System.IServiceProvider
.NET Framework Security
- 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.