IdeaBlade.Core Assembly > IdeaBlade.Core.Reflection Namespace > ReflectionExtensions Class > GetAttributes Method : GetAttributes<T>(ICustomAttributeProvider,Boolean) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function GetAttributes(Of T As Attribute)( _ ByVal provider As ICustomAttributeProvider, _ Optional ByVal inherit As Boolean _ ) As IEnumerable(Of T)
'Usage
Dim provider As ICustomAttributeProvider Dim inherit As Boolean Dim value As IEnumerable(Of T) value = ReflectionExtensions.GetAttributes(Of T)(provider, inherit)
[Extension()] public static IEnumerable<T> GetAttributes<T>( ICustomAttributeProvider provider, bool inherit ) where T: Attribute
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