다음을 통해 공유


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
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