ValidationController.ValidateCustom 方法 (Store, array<String[])
在存储验证每个模型元素,使用在中指定的自定义类别的验证方法。 ,如果有指定该类别,将 ValidationMethod 属性验证方法所属类别。
命名空间: Microsoft.VisualStudio.Modeling.Validation
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.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[]
指定要验证方法进行应用。具有 ValidationMethod 属性指定这些自定义类别之一的每种验证方法将应用于每个模型元素在存储。
返回值
类型:System.Boolean
则为 true; 如果存储有效,但未找到错误;否则,错误。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。