MetadataModuleTInterface, TMetadataRegisterType Method (Type, TMetadata) |
registers provided metadata on the declared type.
Namespace:
Autofac.Extras.AttributeMetadata
Assembly:
Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax public IRegistrationBuilder<Object, ConcreteReflectionActivatorData, SingleRegistrationStyle> RegisterType(
Type instanceType,
TMetadata metadata
)
Public Function RegisterType (
instanceType As Type,
metadata As TMetadata
) As IRegistrationBuilder(Of Object, ConcreteReflectionActivatorData, SingleRegistrationStyle)
Parameters
- instanceType
- Type: SystemType
Type of the instance. - metadata
- Type: TMetadata
The metadata.
Return Value
Type:
IRegistrationBuilderObject,
ConcreteReflectionActivatorData,
SingleRegistrationStyle
The registration for continued configuration.
Implements
IMetadataRegistrarTInterface, TMetadataRegisterType(Type, TMetadata)See Also