IGuardedOperations.FindEligibleFactories<TExtensionFactory,TMetadataView> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Selects extension factories whose declared content type metadata matches the provided target content type, taking into account that extension factory may be disabled by a Replace attribute on another factory.
public:
generic <typename TExtensionFactory, typename TMetadataView>
where TExtensionFactory : class where TMetadataView : Microsoft::VisualStudio::Utilities::INamedContentTypeMetadata System::Collections::Generic::IEnumerable<Lazy<TExtensionFactory, TMetadataView> ^> ^ FindEligibleFactories(System::Collections::Generic::IEnumerable<Lazy<TExtensionFactory, TMetadataView> ^> ^ lazyFactories, Microsoft::VisualStudio::Utilities::IContentType ^ dataContentType, Microsoft::VisualStudio::Utilities::IContentTypeRegistryService ^ contentTypeRegistryService);
public System.Collections.Generic.IEnumerable<Lazy<TExtensionFactory,TMetadataView>> FindEligibleFactories<TExtensionFactory,TMetadataView> (System.Collections.Generic.IEnumerable<Lazy<TExtensionFactory,TMetadataView>> lazyFactories, Microsoft.VisualStudio.Utilities.IContentType dataContentType, Microsoft.VisualStudio.Utilities.IContentTypeRegistryService contentTypeRegistryService) where TExtensionFactory : class where TMetadataView : Microsoft.VisualStudio.Utilities.INamedContentTypeMetadata;
abstract member FindEligibleFactories : seq<Lazy<'ExtensionFactory, 'MetadataView>> * Microsoft.VisualStudio.Utilities.IContentType * Microsoft.VisualStudio.Utilities.IContentTypeRegistryService -> seq<Lazy<'ExtensionFactory, 'MetadataView>> (requires 'ExtensionFactory : null and 'MetadataView :> Microsoft.VisualStudio.Utilities.INamedContentTypeMetadata)
Public Function FindEligibleFactories(Of TExtensionFactory As Class, TMetadataView As Class) (lazyFactories As IEnumerable(Of Lazy(Of TExtensionFactory, TMetadataView)), dataContentType As IContentType, contentTypeRegistryService As IContentTypeRegistryService) As IEnumerable(Of Lazy(Of TExtensionFactory, TMetadataView))
Type Parameters
- TExtensionFactory
- TMetadataView
Parameters
- lazyFactories
- IEnumerable<Lazy<TExtensionFactory,TMetadataView>>
Lazy references that will be evaluated.
- dataContentType
- IContentType
Target content type.
- contentTypeRegistryService
- IContentTypeRegistryService
Instance of IContentTypeRegistryService which orders content types.
Returns
Remarks
This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.