Udostępnij za pośrednictwem


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

Wywołania metod sprawdzania poprawności zestawu elementów, w tym ich

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Składnia

'Deklaracja
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
)

Parametry

  • customCategories
    Typ: array<System.String[]
    Lista ciągów.Metoda sprawdzania poprawności zostanie wykonana, jeśli ciąg niestandardowy sprawdzania poprawności, który jest równy jednej z określonych ciągów.

Wartość zwracana

Typ: System.Boolean

Uwagi

Metoda ta służy do wywołania metody sprawdzania poprawności, dla których określono kategorii niestandardowej w atrybucie ValidationMethod.Każda kategoria niestandardowa jest identyfikowany przez ciąg.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VsValidationController Klasa

Przeciążenie ValidateCustom

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell