Click or drag to resize

MetadataHelperGetProperties Method

Given a target attribute object, returns a set of public readable properties and associated values.

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>> GetProperties(
	Object target,
	Type instanceType
)

Parameters

target
Type: SystemObject
Target attribute instance to be scanned.
instanceType
Type: SystemType
The Type on which the target attribute is associated. Used when the target is an IMetadataProvider.

Return Value

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