Dela via


AttributeTable.GetCustomAttributes Method (Assembly)

Returns an enumeration of all attributes provided for the specified assembly.

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

Syntax

'Declaration
Public Function GetCustomAttributes ( _
    assembly As Assembly _
) As IEnumerable
public IEnumerable GetCustomAttributes(
    Assembly assembly
)
public:
IEnumerable^ GetCustomAttributes(
    Assembly^ assembly
)
member GetCustomAttributes : 
        assembly:Assembly -> IEnumerable 
public function GetCustomAttributes(
    assembly : Assembly
) : IEnumerable

Parameters

Return Value

Type: System.Collections.IEnumerable
An enumeration of attributes.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

This method never returns a nulla null reference (Nothing in Visual Basic) enumeration.

.NET Framework Security

See Also

Reference

AttributeTable Class

GetCustomAttributes Overload

Microsoft.Windows.Design.Metadata Namespace

AttributeTableBuilder