VsValidationController Class
VS model validation controller.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.Validation.ValidationController
Microsoft.VisualStudio.Modeling.Shell.VsValidationController
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
‘선언
Public Class VsValidationController _
Inherits ValidationController
public class VsValidationController : ValidationController
public ref class VsValidationController : public ValidationController
type VsValidationController =
class
inherit ValidationController
end
public class VsValidationController extends ValidationController
The VsValidationController type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VsValidationController(IServiceProvider) | Constructor. | |
VsValidationController(IServiceProvider, Type) | Constructor. |
Top
Properties
Name | Description | |
---|---|---|
ErrorMessages | Gets a copy of all the active error and fatal messages. (Inherited from ValidationController.) | |
FatalMessages | Gets a copy of all the active fatal messages. (Inherited from ValidationController.) | |
IncludeLinkedExtensionElements | Indicates whether ExtensionElements linked to the ModelElements being validated should also be validated. ExtensionElements allow a DSL definition to be extended by a third party. (Inherited from ValidationController.) | |
InformationalMessages | gets a copy of all the active informational messages. (Inherited from ValidationController.) | |
ServiceProvider | ||
ValidationExtensionRegistrar | Property for ValidationExtension Registrar (Inherited from ValidationController.) | |
ValidationMessages | Gets the validation messages for the controller. (Inherited from ValidationController.) | |
WarningMessages | Gets a copy of all the active warning messages. (Inherited from ValidationController.) |
Top
Methods
Name | Description | |
---|---|---|
AddObserver | Adds an observer to the list of observers for the controller. The observer will be notified when a message is added to or removed from the list for this controller. (Inherited from ValidationController.) | |
ClearMessages | Clears all validation messages (Overrides ValidationController.ClearMessages().) | |
CreateValidationContext(IEnumerable<ModelElement>, ValidationCategories) | Provide a context class for the validation (Overrides ValidationController.CreateValidationContext(IEnumerable<ModelElement>, ValidationCategories).) | |
CreateValidationContext(IEnumerable<ModelElement>, array<String[]) | Provide a context class for the validation (Overrides ValidationController.CreateValidationContext(IEnumerable<ModelElement>, array<String[]).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetExtensionElements | Calculates and returns a list of extension elements that should be included in the list of elements being validated (Inherited from ValidationController.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveObserver | Removes the observer from the list of observers for the controller. (Inherited from ValidationController.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Validate(IEnumerable<ModelElement>, ValidationCategories) | Invoke all the validation methods that are applicable to the set of elements. (Overrides ValidationController.Validate(IEnumerable<ModelElement>, ValidationCategories).) | |
Validate(ModelElement, ValidationCategories) | Do validation for a single element, invoking validation methods that have ValidationMethod attributes for one or more of the specified validation categories. (Inherited from ValidationController.) | |
Validate(Partition, ValidationCategories) | Apply validation to every element in the specified partition, invoking validation methods that have ValidationMethod attributes for one or more of the specified categories. (Inherited from ValidationController.) | |
Validate(Store, ValidationCategories) | Apply validation to every element in the Store, invoking methods that have ValidationMethod attributes for one or more of the specified categories. (Inherited from ValidationController.) | |
ValidateCustom(IEnumerable<ModelElement>, array<String[]) | Invoke all the validation methods of a set of elements, including their (Overrides ValidationController.ValidateCustom(IEnumerable<ModelElement>, array<String[]).) | |
ValidateCustom(ModelElement, array<String[]) | Validates the specified model element using validation methods in the specified custom validation categories. (Inherited from ValidationController.) | |
ValidateCustom(Partition, array<String[]) | Validates the model elements in a partition for the specified custom validation categories. (Inherited from ValidationController.) | |
ValidateCustom(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. (Inherited from ValidationController.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.