다음을 통해 공유


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
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

Return Value

Type: System.Collections.Generic.IEnumerable<Delegate>
Collection of validation actions appliable to this element

.NET Framework Security

See Also

Reference

ValidationExtensionRegistrar Class

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace