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
- assembly
Type: System.Reflection.Assembly
The assembly to get assembly-level attributes for.
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
- 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.