Click or drag to resize

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
)

Parameters

targetType
Type: SystemType
Type to interrogate for metadata attributes.

Return Value

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