Click or drag to resize

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
)

Parameters

targetType
Type: SystemType
Type to interrogate.

Type Parameters

TMetadataType
Metadata type to look for in the list of attributes.

Return Value

Type: IEnumerableKeyValuePairString, Object
Enumerable set of property names and associated values found.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if targetType is .
See Also