AttributeTable.GetCustomAttributes Method (Type, MemberInfo)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns an enumeration of all attributes provided for the specified member of the specified type.
Namespace: System.Activities.Design.Metadata
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public Function GetCustomAttributes ( _
ownerType As Type, _
member As MemberInfo _
) As IEnumerable
'Usage
Dim instance As AttributeTable
Dim ownerType As Type
Dim member As MemberInfo
Dim returnValue As IEnumerable
returnValue = instance.GetCustomAttributes(ownerType, _
member)
public IEnumerable GetCustomAttributes(
Type ownerType,
MemberInfo member
)
public:
IEnumerable^ GetCustomAttributes(
Type^ ownerType,
MemberInfo^ member
)
public function GetCustomAttributes(
ownerType : Type,
member : MemberInfo
) : IEnumerable
member GetCustomAttributes :
ownerType:Type *
member:MemberInfo -> IEnumerable
Parameters
- ownerType
Type: System.Type
The type that contains the member.
- member
Type: System.Reflection.MemberInfo
The member to provide attributes for.
Return Value
Type: System.Collections.IEnumerable
An enumeration of attributes that match the criteria. This will never return a null enumeration.
Exceptions
| Exception | Condition |
|---|---|
| [T:System. ArgumentNullException] | ownerType or member is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4