Returns the first attribute of the given type on an object, or null if not found. Optionally check any metadata type associated with the specified type as well.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim type As Type
Dim checkMetadataType As Boolean
Dim value As T
value = ReflectionFns.GetAttribute(Of T)(type, checkMetadataType) |
Parameters
- type
- checkMetadataType
Type Parameters
- T
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also