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
)
Public Shared Function GetProperties (
target As Object,
instanceType As Type
) As IEnumerable(Of KeyValuePair(Of String, Object))
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,
ObjectEnumerable set of property names and associated values.
Exceptions See Also