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.
- subject
Type: Microsoft.VisualStudio.Modeling.ModelElement
The root object to be validated.
.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.