MetadataHelperGetMetadataTMetadataType Method (Type) |
Given a component type, interrogates the metadata attributes to retrieve
a set of property name/value metadata pairs provided by a specific
metadata provider.
Namespace:
Autofac.Extras.AttributeMetadata
Assembly:
Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax public static IEnumerable<KeyValuePair<string, Object>> GetMetadata<TMetadataType>(
Type targetType
)
Public Shared Function GetMetadata(Of TMetadataType) (
targetType As Type
) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
- targetType
- Type: SystemType
Type to interrogate.
Type Parameters
- TMetadataType
- Metadata type to look for in the list of attributes.
Return Value
Type:
IEnumerableKeyValuePairString,
ObjectEnumerable set of property names and associated values found.
Exceptions See Also