Share via


ValidationContext Constructor (array<String , ModelElement)

Initializes a new instance of the ValidationContext class that has a specific model element to validate.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Sub New ( _
    customCategories As String(), _
    subject As ModelElement _
)
public ValidationContext(
    string[] customCategories,
    ModelElement subject
)
public:
ValidationContext(
    array<String^>^ customCategories, 
    ModelElement^ subject
)
new : 
        customCategories:string[] * 
        subject:ModelElement -> ValidationContext
public function ValidationContext(
    customCategories : String[], 
    subject : ModelElement
)

Parameters

  • customCategories
    Type: array<System.String[]

    A list of custom specified strings. If you include this parameter, any validation method with a string in this list can be validated.

.NET Framework Security

See Also

Reference

ValidationContext Class

ValidationContext Overload

Microsoft.VisualStudio.Modeling.Validation Namespace