将验证方法应用于集合中的每个元素。 所选择类别中任一个类别的每个验证方法都会应用到列表中的每个元素。 如果其具有指定类别的 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
)
参数
- subjects
类型:System.Collections.Generic.IEnumerable<ModelElement>
模型元素生效。所选择类别中任一个类别的每个验证方法都会应用到列表中的每个元素。
- customCategories
类型:array<System.String[]
指定哪些验证方法能应用于主题。如果其具有此集合中指定的任何的自定义类别的 ValidationMethod 特性,则验证方法适用。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。