다음을 통해 공유


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

Syntax

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

  • customCategories
    Type: array<System.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: System.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