ExtensionRegistrarBase<T, TMetadataView>.CanImport Method

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

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

Syntax

protected virtual bool CanImport(
    Lazy<T, TMetadataView> lazyImport
)

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ExtensionRegistrarBase<T, TMetadataView> Class

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace