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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
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
- lazyImport
Type: System.Lazy<T, TMetadataView>
Return Value
Type: System.Boolean
.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
ExtensionRegistrarBase<T, TMetadataView> Class
Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace