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

将验证方法应用于集合中的每个元素。 所选择类别中任一个类别的每个验证方法都会应用到列表中的每个元素。 如果其具有指定类别的 ValidationMethod 特性,则验证方法在此类别中。

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

语法

声明
Public Overridable Function ValidateCustom ( _
    subjects As IEnumerable(Of ModelElement), _
    ParamArray customCategories As String() _
) As Boolean
public virtual bool ValidateCustom(
    IEnumerable<ModelElement> subjects,
    params string[] customCategories
)

参数

  • customCategories
    类型:array<System.String[]
    指定哪些验证方法能应用于主题。如果其具有此集合中指定的任何的自定义类别的 ValidationMethod 特性,则验证方法适用。

返回值

类型:System.Boolean

.NET Framework 安全性

请参阅

参考

ValidationController 类

ValidateCustom 重载

Microsoft.VisualStudio.Modeling.Validation 命名空间