VsValidationController.ValidateCustom 方法 (IEnumerable<ModelElement>, array<String[])

调用一组元素所有的验证方法,包括他们的

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
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
)

参数

  • customCategories
    类型:array<System.String[]
    字符串列表。如果其具有等于指定的字符串中的一个自定义验证字符串,将执行验证方法。

返回值

类型:System.Boolean

备注

使用此方法以调用刚在 ValidationMethod 特性指定一个自定义类别的验证方法。 每个自定义类别由字符串标识。

.NET Framework 安全性

请参阅

参考

VsValidationController 类

ValidateCustom 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间