Share via


ValidationExtensionRegistrar Class

Definition

Base class for an ExtensionRegistar that can register Validation Extensions

public ref class ValidationExtensionRegistrar abstract : Microsoft::VisualStudio::Modeling::ExtensionEnablement::ExtensionRegistrarBase<Delegate ^, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^>
public abstract class ValidationExtensionRegistrar : Microsoft.VisualStudio.Modeling.ExtensionEnablement.ExtensionRegistrarBase<Delegate,System.Collections.Generic.IDictionary<string,object>>
type ValidationExtensionRegistrar = class
    inherit ExtensionRegistrarBase<Delegate, IDictionary<string, obj>>
Public MustInherit Class ValidationExtensionRegistrar
Inherits ExtensionRegistrarBase(Of Delegate, IDictionary(Of String, Object))
Inheritance

Constructors

ValidationExtensionRegistrar()

Properties

FilteredImports

List of Imports after filtering was applied.

LazyImports

List of lazy imports after filtering was applied.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
Logger
MetadataFilter

String-based Metadata Key that determines if a particular Exported Type can be imported or not. The default CanImport implementation filters imports based on this metadata key. The default value of this property is null indicating that no filter will be applied.

UnfilteredLazyImports

Methods

CanImport(Lazy<Delegate,IDictionary<String,Object>>)

Allow registrars that match the metadatafilter with a key in their metadata to be imported

CanImport(Lazy<T,TMetadataView>)

Determines if for a particular Lazy Import, the underlying exported object should be imported or not. The default implementation allows all imports.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
Compare(Tuple<T,TMetadataView>, Tuple<T,TMetadataView>)

Compares two imported objects of the same type.

(Inherited from ExtensionRegistrarBase<T,TMetadataView>)
GetValidationMethods(Object, ValidationContext)

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

Applies to