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 Overridable Function CanImport ( _
    lazyImport As Lazy(Of T, TMetadataView) _
) As Boolean
protected virtual bool CanImport(
    Lazy<T, TMetadataView> lazyImport
)
protected:
virtual bool CanImport(
    Lazy<T, TMetadataView>^ lazyImport
)
abstract CanImport : 
        lazyImport:Lazy<'T, 'TMetadataView> -> bool 
override CanImport : 
        lazyImport:Lazy<'T, 'TMetadataView> -> bool 
protected function CanImport(
    lazyImport : Lazy<T, TMetadataView>
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ExtensionRegistrarBase<T, TMetadataView> Class

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace