ValidationController.ValidateCustom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ValidateCustom(ModelElement, String[]) |
Do validation for a single element |
ValidateCustom(Partition, String[]) |
Validate the whole partition |
ValidateCustom(Store, String[]) |
Validate the whole store |
ValidateCustom(IEnumerable<ModelElement>, String[]) |
Do validation for a set of elements based on the customCategories specified strings |
ValidateCustom(ModelElement, String[])
Do validation for a single element
public:
bool ValidateCustom(Microsoft::VisualStudio::Modeling::ModelElement ^ subject, ... cli::array <System::String ^> ^ customCategories);
public bool ValidateCustom (Microsoft.VisualStudio.Modeling.ModelElement subject, params string[] customCategories);
member this.ValidateCustom : Microsoft.VisualStudio.Modeling.ModelElement * string[] -> bool
Public Function ValidateCustom (subject As ModelElement, ParamArray customCategories As String()) As Boolean
Parameters
- subject
- ModelElement
The subject to validate
- customCategories
- String[]
A list of custom specified strings. This allows the validation method with the given strings to be validated. Note: At least one custom string needs to be specified, or exception will be thrown.
Returns
Returns true if no error/warning/message are found.
Applies to
ValidateCustom(Partition, String[])
Validate the whole partition
public:
bool ValidateCustom(Microsoft::VisualStudio::Modeling::Partition ^ partition, ... cli::array <System::String ^> ^ customCategories);
public bool ValidateCustom (Microsoft.VisualStudio.Modeling.Partition partition, params string[] customCategories);
member this.ValidateCustom : Microsoft.VisualStudio.Modeling.Partition * string[] -> bool
Public Function ValidateCustom (partition As Partition, ParamArray customCategories As String()) As Boolean
Parameters
- partition
- Partition
Partition to be validated
- customCategories
- String[]
A list of custom specified strings. This allows the validation method with the given strings to be validated. Note: At least one custom string needs to be specified, or exception will be thrown.
Returns
Returns true if no error/warning/message are found.
Applies to
ValidateCustom(Store, String[])
Validate the whole store
public:
bool ValidateCustom(Microsoft::VisualStudio::Modeling::Store ^ store, ... cli::array <System::String ^> ^ customCategories);
public bool ValidateCustom (Microsoft.VisualStudio.Modeling.Store store, params string[] customCategories);
member this.ValidateCustom : Microsoft.VisualStudio.Modeling.Store * string[] -> bool
Public Function ValidateCustom (store As Store, ParamArray customCategories As String()) As Boolean
Parameters
- store
- Store
Store to be validated
- customCategories
- String[]
A list of custom specified strings. This allows the validation method with the given strings to be validated. Note: At least one custom string needs to be specified, or exception will be thrown.
Returns
Returns true if no error/warning/message are found.
Applies to
ValidateCustom(IEnumerable<ModelElement>, String[])
Do validation for a set of elements based on the customCategories specified strings
public:
virtual bool ValidateCustom(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects, ... cli::array <System::String ^> ^ customCategories);
public virtual bool ValidateCustom (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects, params string[] customCategories);
abstract member ValidateCustom : seq<Microsoft.VisualStudio.Modeling.ModelElement> * string[] -> bool
override this.ValidateCustom : seq<Microsoft.VisualStudio.Modeling.ModelElement> * string[] -> bool
Public Overridable Function ValidateCustom (subjects As IEnumerable(Of ModelElement), ParamArray customCategories As String()) As Boolean
Parameters
- subjects
- IEnumerable<ModelElement>
Subjects to be validated.
- customCategories
- String[]
A list of custom specified strings. This allows the validation method with the given strings to be validated. Note: At least one custom string needs to be specified, or exception will be thrown.
Returns
Returns true if no error/warning/message are found.