Dela via


AttributeTableContainer.GetLocalAttributes Method (MemberInfo, Type, Func<Object, Object>)

Enumerates custom attributes for the specified member, including inherited attributes from base members.

Namespace:  Microsoft.Windows.Design.Metadata
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Function GetLocalAttributes ( _
    member As MemberInfo, _
    attributeType As Type, _
    reflectionMapper As Func(Of Object, Object) _
) As IEnumerable(Of Object)
public IEnumerable<Object> GetLocalAttributes(
    MemberInfo member,
    Type attributeType,
    Func<Object, Object> reflectionMapper
)
public:
IEnumerable<Object^>^ GetLocalAttributes(
    MemberInfo^ member, 
    Type^ attributeType, 
    Func<Object^, Object^>^ reflectionMapper
)
member GetLocalAttributes : 
        member:MemberInfo * 
        attributeType:Type * 
        reflectionMapper:Func<Object, Object> -> IEnumerable<Object> 
public function GetLocalAttributes(
    member : MemberInfo, 
    attributeType : Type, 
    reflectionMapper : Func<Object, Object>
) : IEnumerable<Object>

Parameters

  • attributeType
    Type: System.Type
    The attribute type to retrieve, or nulla null reference (Nothing in Visual Basic) for all attributes.
  • reflectionMapper
    Type: System.Func<Object, Object>
    An optional mapping function to map the incoming reflection metadata to runtime metadata.

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
An enumeration of attributes.

Exceptions

Exception Condition
ArgumentNullException

member is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

AttributeTableContainer Class

GetLocalAttributes Overload

Microsoft.Windows.Design.Metadata Namespace