ValidationController.ValidateCustom Method (Partition, array<String )
Validates the model elements in a partition for the specified custom validation categories.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Function ValidateCustom ( _
partition As Partition, _
ParamArray customCategories As String() _
) As Boolean
public bool ValidateCustom(
Partition partition,
params string[] customCategories
)
public:
bool ValidateCustom(
Partition^ partition,
... array<String^>^ customCategories
)
member ValidateCustom :
partition:Partition *
customCategories:string[] -> bool
public function ValidateCustom(
partition : Partition,
... customCategories : String[]
) : boolean
Parameters
partition
Type: Microsoft.VisualStudio.Modeling.PartitionThe partition whose model elements will be validated.
customCategories
Type: array<System.String[]Specifies which validation methods will be applied. Every validation method that has a ValidationMethod attribute that specifies one of these custom categories will be applied to each model element in the partition.
Return Value
Type: System.Boolean
true if the partition is valid and no errors were found; otherwise, false.
.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.