ValidationExtensionRegistrar.GetValidationMethods 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.
Default implementation to return all delegates appliable to the type of one model element (and its base type/implemented interfaces)
public:
virtual System::Collections::Generic::IEnumerable<Delegate ^> ^ GetValidationMethods(System::Object ^ element, Microsoft::VisualStudio::Modeling::Validation::ValidationContext ^ context);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Modeling.ExtensionEnablement.ValidationExtensionRegistrar+<GetValidationMethods>d__9))]
public virtual System.Collections.Generic.IEnumerable<Delegate> GetValidationMethods (object element, Microsoft.VisualStudio.Modeling.Validation.ValidationContext context);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Modeling.ExtensionEnablement.ValidationExtensionRegistrar+<GetValidationMethods>d__9))>]
abstract member GetValidationMethods : obj * Microsoft.VisualStudio.Modeling.Validation.ValidationContext -> seq<Delegate>
override this.GetValidationMethods : obj * Microsoft.VisualStudio.Modeling.Validation.ValidationContext -> seq<Delegate>
Public Iterator Overridable Function GetValidationMethods (element As Object, context As ValidationContext) As IEnumerable(Of Delegate)
Parameters
- element
- Object
Model element
- context
- ValidationContext
Returns
Collection of validation actions appliable to this element
- Attributes