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
'Declaração
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: System.Object
Model element
Return Value
Type: System.Collections.Generic.IEnumerable<Delegate>
Collection of validation actions appliable to this element
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ValidationExtensionRegistrar Class
Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace