ValidationController.ValidateCustom Method (IEnumerable<ModelElement>, array<String )
Apply validation methods to each element in the collection. Each validation method in any of the chosen categories is applied to each element in the list. A validation method is in a category if it has a ValidationMethod attribute that specifies the category.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
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
)
public:
virtual bool ValidateCustom(
IEnumerable<ModelElement^>^ subjects,
... array<String^>^ customCategories
)
abstract ValidateCustom :
subjects:IEnumerable<ModelElement> *
customCategories:string[] -> bool
override ValidateCustom :
subjects:IEnumerable<ModelElement> *
customCategories:string[] -> bool
public function ValidateCustom(
subjects : IEnumerable<ModelElement>,
... customCategories : String[]
) : boolean
Parameters
- subjects
Type: System.Collections.Generic.IEnumerable<ModelElement>
Model elements to be validated. Each validation method in any of the chosen categories is applied to each element in the list.
- customCategories
Type: array<System.String[]
Specifies which validation methods are to be applied to the subjects. A validation method is applied if it has a ValidationMethod attributes that specifies any of the custom categories in this collection.
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.