DevForce Help Reference
GetAttribute<T> Method


Returns the requested attribute, or null if not found.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function GetAttribute(Of T As Attribute)( _
   ByVal provider As ICustomAttributeProvider, _
   Optional ByVal inherit As Boolean _
) As T
'Usage
 
Dim provider As ICustomAttributeProvider
Dim inherit As Boolean
Dim value As T
 
value = ReflectionExtensions.GetAttribute(Of T)(provider, inherit)
[Extension()]
public static T GetAttribute<T>( 
   ICustomAttributeProvider provider,
   bool inherit
)
where T: Attribute

Parameters

provider
inherit

Type Parameters

T
Requirements

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

See Also

Reference

ReflectionExtensions Class
ReflectionExtensions Members

Send Feedback