| ExtensionMethodsGetExportsTMetadataView(IExportProvider, Type, String, FuncIMetadata, TMetadataView) Method |
Gets the exports for the specified parameters.
Namespace: TomsToolbox.CompositionAssembly: TomsToolbox.Composition (in TomsToolbox.Composition.dll) Version: 2.20.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static IEnumerable<IExport<Object, TMetadataView>> GetExports<TMetadataView>(
this IExportProvider exportProvider,
Type type,
string? contractName,
Func<IMetadata?, TMetadataView> metadataFactory
)
where TMetadataView : class
<ExtensionAttribute>
Public Shared Function GetExports(Of TMetadataView As Class) (
exportProvider As IExportProvider,
type As Type,
contractName As String,
metadataFactory As Func(Of IMetadata, TMetadataView)
) As IEnumerable(Of IExport(Of Object, TMetadataView))
Parameters
- exportProvider IExportProvider
- The export provider.
- type Type
- The type of the requested object.
- contractName String
- Name of the contract.
- metadataFactory FuncIMetadata, TMetadataView
- The factory method to create the metadata object from the metadata dictionary.
Type Parameters
- TMetadataView
- The type of the metadata.
Return Value
IEnumerableIExportObject,
TMetadataView
The exports.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IExportProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also