VsValidationController.CreateValidationContext Method (IEnumerable<ModelElement>, array<String )
Provide a context class for the validation
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Protected Overrides Function CreateValidationContext ( _
subjects As IEnumerable(Of ModelElement), _
customCategories As String() _
) As ValidationContext
protected override ValidationContext CreateValidationContext(
IEnumerable<ModelElement> subjects,
string[] customCategories
)
protected:
virtual ValidationContext^ CreateValidationContext(
IEnumerable<ModelElement^>^ subjects,
array<String^>^ customCategories
) override
abstract CreateValidationContext :
subjects:IEnumerable<ModelElement> *
customCategories:string[] -> ValidationContext
override CreateValidationContext :
subjects:IEnumerable<ModelElement> *
customCategories:string[] -> ValidationContext
protected override function CreateValidationContext(
subjects : IEnumerable<ModelElement>,
customCategories : String[]
) : ValidationContext
Parameters
- subjects
Type: System.Collections.Generic.IEnumerable<ModelElement>
- customCategories
Type: array<System.String[]
A list of custom specified string. This allows the validation method with the given string to be validated.
Return Value
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext
.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.