IdeaBlade DevForce 2010 Help Reference
GetAttribute(ICustomAttributeProvider,Type) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > ReflectionFns Class > GetAttribute Method : GetAttribute(ICustomAttributeProvider,Type) Method



provider
attributeType
Returns the first attribute of the given type on an object, or null if not found.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetAttribute( _
   ByVal provider As ICustomAttributeProvider, _
   ByVal attributeType As Type _
) As Attribute
Visual Basic (Usage)Copy Code
Dim provider As ICustomAttributeProvider
Dim attributeType As Type
Dim value As Attribute
 
value = ReflectionFns.GetAttribute(provider, attributeType)
C# 
public static Attribute GetAttribute( 
   ICustomAttributeProvider provider,
   Type attributeType
)
C++/CLI 
public:
static Attribute^ GetAttribute( 
   ICustomAttributeProvider^ provider,
   Type^ attributeType
) 

Parameters

provider
attributeType

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

© 2013 All Rights Reserved.