Share via


ValidationExtensionRegistrar.GetValidationMethods Method

Default implementation to return all delegates appliable to the type of one model element (and its base type/implemented interfaces)

Namespace:  Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Overridable Function GetValidationMethods ( _
    element As Object, _
    context As ValidationContext _
) As IEnumerable(Of Delegate)
public virtual IEnumerable<Delegate> GetValidationMethods(
    Object element,
    ValidationContext context
)
public:
virtual IEnumerable<Delegate^>^ GetValidationMethods(
    Object^ element, 
    ValidationContext^ context
)
abstract GetValidationMethods : 
        element:Object * 
        context:ValidationContext -> IEnumerable<Delegate> 
override GetValidationMethods : 
        element:Object * 
        context:ValidationContext -> IEnumerable<Delegate> 
public function GetValidationMethods(
    element : Object, 
    context : ValidationContext
) : IEnumerable<Delegate>

Parameters

  • element
    Type: Object

    Model element

Return Value

Type: IEnumerable<Delegate>
Collection of validation actions appliable to this element

.NET Framework Security

See Also

Reference

ValidationExtensionRegistrar Class

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace