|  | ExtensionMethodsBindMetadata(IServiceCollection, Type, IDictionaryString, Object) Method | 
            Binds the metadata to the service.
            
Namespace: TomsToolbox.Composition.MicrosoftExtensionsAssembly: TomsToolbox.Composition.MicrosoftExtensions (in TomsToolbox.Composition.MicrosoftExtensions.dll) Version: 2.20.0+81722655bc5ac69e82709ab0d5f512a9f7e83ea5
XMLNS for XAML: Not mapped to an xmlns.
 Syntax
Syntaxpublic static IServiceCollection BindMetadata(
	this IServiceCollection serviceCollection,
	Type serviceType,
	IDictionary<string, Object?> metadata
)
<ExtensionAttribute>
Public Shared Function BindMetadata ( 
	serviceCollection As IServiceCollection,
	serviceType As Type,
	metadata As IDictionary(Of String, Object)
) As IServiceCollection
Parameters
- serviceCollection  IServiceCollection
- The service collection
- serviceType  Type
- The service type that the service was registered with.
- metadata  IDictionaryString, Object
- The metadata for the service
Return Value
IServiceCollectionThe 
serviceCollectionUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IServiceCollection. 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
See Also