ValidationController.ValidateCustom Method (Store, array<String )
Validates every model elements in a store, using validation methods in the specified custom categories. A validation method belongs to a category if it has a ValidationMethod attribute specifying that category.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
Public Function ValidateCustom ( _
store As Store, _
ParamArray customCategories As String() _
) As Boolean
public bool ValidateCustom(
Store store,
params string[] customCategories
)
public:
bool ValidateCustom(
Store^ store,
... array<String^>^ customCategories
)
member ValidateCustom :
store:Store *
customCategories:string[] -> bool
public function ValidateCustom(
store : Store,
... customCategories : String[]
) : boolean
Parameters
- store
Type: Microsoft.VisualStudio.Modeling.Store
The store 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 store.
Return Value
Type: System.Boolean
true if the store 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.