Partilhar via


ValidationContext Constructors

Definition

Overloads

ValidationContext(ValidationCategories, ModelElement)

Constructor

ValidationContext(ValidationCategories, IEnumerable<ModelElement>)

Constructor

ValidationContext(String[], ModelElement)

Ctor for creating a custom validation context. The validation can then be called from ValidationController.Validate with this context object.

ValidationContext(String[], IEnumerable<ModelElement>)

Ctor

ValidationContext(ValidationCategories, ModelElement)

Constructor

public:
 ValidationContext(Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories, Microsoft::VisualStudio::Modeling::ModelElement ^ subject);
public ValidationContext (Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories, Microsoft.VisualStudio.Modeling.ModelElement subject);
new Microsoft.VisualStudio.Modeling.Validation.ValidationContext : Microsoft.VisualStudio.Modeling.Validation.ValidationCategories * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Public Sub New (categories As ValidationCategories, subject As ModelElement)

Parameters

subject
ModelElement

root object to be validated

Applies to

ValidationContext(ValidationCategories, IEnumerable<ModelElement>)

Constructor

public:
 ValidationContext(Microsoft::VisualStudio::Modeling::Validation::ValidationCategories categories, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects);
public ValidationContext (Microsoft.VisualStudio.Modeling.Validation.ValidationCategories categories, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects);
new Microsoft.VisualStudio.Modeling.Validation.ValidationContext : Microsoft.VisualStudio.Modeling.Validation.ValidationCategories * seq<Microsoft.VisualStudio.Modeling.ModelElement> -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Public Sub New (categories As ValidationCategories, subjects As IEnumerable(Of ModelElement))

Parameters

subjects
IEnumerable<ModelElement>

object to be validated

Applies to

ValidationContext(String[], ModelElement)

Ctor for creating a custom validation context. The validation can then be called from ValidationController.Validate with this context object.

public:
 ValidationContext(cli::array <System::String ^> ^ customCategories, Microsoft::VisualStudio::Modeling::ModelElement ^ subject);
public ValidationContext (string[] customCategories, Microsoft.VisualStudio.Modeling.ModelElement subject);
new Microsoft.VisualStudio.Modeling.Validation.ValidationContext : string[] * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Public Sub New (customCategories As String(), subject As ModelElement)

Parameters

customCategories
String[]

A list of custom specified string. This allows the validation method with the given string to be validated.

subject
ModelElement

root object to be validated

Applies to

ValidationContext(String[], IEnumerable<ModelElement>)

Ctor

public:
 ValidationContext(cli::array <System::String ^> ^ customCategories, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ subjects);
public ValidationContext (string[] customCategories, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> subjects);
new Microsoft.VisualStudio.Modeling.Validation.ValidationContext : string[] * seq<Microsoft.VisualStudio.Modeling.ModelElement> -> Microsoft.VisualStudio.Modeling.Validation.ValidationContext
Public Sub New (customCategories As String(), subjects As IEnumerable(Of ModelElement))

Parameters

customCategories
String[]

A list of custom specified string. This allows the validation method with the given string to be validated.

subjects
IEnumerable<ModelElement>

object to be validated

Applies to