IdeaBlade.Core Assembly > IdeaBlade.Core.Reflection Namespace > ReflectionExtensions Class > GetAttributes Method : GetAttributes(ICustomAttributeProvider,Type,Boolean) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function GetAttributes( _ ByVal provider As ICustomAttributeProvider, _ ByVal attrType As Type, _ Optional ByVal inherit As Boolean _ ) As IEnumerable(Of Attribute)
'Usage
Dim provider As ICustomAttributeProvider Dim attrType As Type Dim inherit As Boolean Dim value As IEnumerable(Of Attribute) value = ReflectionExtensions.GetAttributes(provider, attrType, inherit)
[Extension()] public static IEnumerable<Attribute> GetAttributes( ICustomAttributeProvider provider, Type attrType, bool inherit )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2