Share via


VsValidationController.ValidateCustom Method (IEnumerable<ModelElement>, array<String )

Invoke all the validation methods of a set of elements, including their

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Public Overrides Function ValidateCustom ( _
    subjects As IEnumerable(Of ModelElement), _
    ParamArray customCategories As String() _
) As Boolean
public override bool ValidateCustom(
    IEnumerable<ModelElement> subjects,
    params string[] customCategories
)
public:
virtual bool ValidateCustom(
    IEnumerable<ModelElement^>^ subjects, 
    ... array<String^>^ customCategories
) override
abstract ValidateCustom : 
        subjects:IEnumerable<ModelElement> * 
        customCategories:string[] -> bool  
override ValidateCustom : 
        subjects:IEnumerable<ModelElement> * 
        customCategories:string[] -> bool
public override function ValidateCustom(
    subjects : IEnumerable<ModelElement>, 
    ... customCategories : String[]
) : boolean

Parameters

  • subjects
    Type: IEnumerable<ModelElement>

    The list of elements to validate.

  • customCategories
    Type: array<String[]

    A list of strings. A validation method will be executed if it has a custom validation string that equals one of the specified strings.

Return Value

Type: Boolean

Remarks

Use this method to invoke validation methods for which you have specified a custom category in the ValidationMethod attribute. Each custom category is identified by a string.

.NET Framework Security

See Also

Reference

VsValidationController Class

ValidateCustom Overload

Microsoft.VisualStudio.Modeling.Shell Namespace