AssemblyBuilder.GetCustomAttributes Method
Definition
Returns custom attributes that have been applied to the current AssemblyBuilder
Overloads
GetCustomAttributes(Boolean) |
Returns all the custom attributes that have been applied to the current AssemblyBuilder. |
GetCustomAttributes(Type, Boolean) |
Returns all the custom attributes that have been applied to the current AssemblyBuilder, and that derive from a specified attribute type. |
GetCustomAttributes(Boolean)
Returns all the custom attributes that have been applied to the current AssemblyBuilder.
public:
override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()
Parameters
- inherit
- Boolean
This argument is ignored for objects of this type.
Returns
- Object[]
An array that contains the custom attributes; the array is empty if there are no attributes.
Applies to
GetCustomAttributes(Type, Boolean)
Returns all the custom attributes that have been applied to the current AssemblyBuilder, and that derive from a specified attribute type.
public:
override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public override object[] GetCustomAttributes (Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()
Parameters
- attributeType
- Type
The base type from which attributes derive.
- inherit
- Boolean
This argument is ignored for objects of this type.
Returns
- Object[]
An array that contains the custom attributes that are derived at any level from attributeType
; the array is empty if there are no such attributes.
Exceptions
attributeType
is null
.
attributeType
is not a Type object supplied by the runtime. For example, attributeType
is a TypeBuilder object.