在仓库确认每个字符元素,使用在中指定的习惯类别的测试方法。 如果其具有指定类别的 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
)
参数
- store
类型:Microsoft.VisualStudio.Modeling.Store
模型元素将被验证的存储。
- customCategories
类型:array<System.String[]
指定将应用哪些验证方法。有一指定了一个自定义类别的 ValidationMehtod 特性的验证方法将会被应用到存储区的每一模型元素。
返回值
类型:System.Boolean
如果存储有效且未找到错误,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。