ValidationController.ValidateCustom 方法 (Store, array<String[])

在仓库确认每个字符元素,使用在中指定的习惯类别的测试方法。 如果其具有指定类别的 ValidationMethod 特性,则验证方法从属于此类。

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

语法

声明
Public Function ValidateCustom ( _
    store As Store, _
    ParamArray customCategories As String() _
) As Boolean
public bool ValidateCustom(
    Store store,
    params string[] customCategories
)

参数

  • customCategories
    类型:array<System.String[]
    指定将应用哪些验证方法。有一指定了一个自定义类别的 ValidationMehtod 特性的验证方法将会被应用到存储区的每一模型元素。

返回值

类型:System.Boolean
如果存储有效且未找到错误,则为 true;否则为 false。

.NET Framework 安全性

请参阅

参考

ValidationController 类

ValidateCustom 重载

Microsoft.VisualStudio.Modeling.Validation 命名空间