MetadataHelperGetMetadata Method (Type) |
Given a component type, interrogates the metadata attributes to retrieve a set of property name/value metadata pairs.
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(
Type targetType
)
Public Shared Function GetMetadata (
targetType As Type
) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
- targetType
- Type: SystemType
Type to interrogate for metadata attributes.
Return Value
Type:
IEnumerableKeyValuePairString,
ObjectEnumerable set of property names and associated values found.
Exceptions See Also