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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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: 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<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: 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.