GenericTypeParameterBuilder.GetCustomAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Not supported for incomplete generic type parameters.
Overloads
GetCustomAttributes(Boolean) |
Not supported for incomplete generic type parameters. |
GetCustomAttributes(Type, Boolean) |
Not supported for incomplete generic type parameters. |
GetCustomAttributes(Boolean)
Not supported for incomplete generic type parameters.
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
Specifies whether to search this member's inheritance chain to find the attributes.
Returns
Not supported for incomplete generic type parameters.
Exceptions
In all cases.
Remarks
This method is not supported for incomplete generic type parameters. Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.
Applies to
GetCustomAttributes(Type, Boolean)
Not supported for incomplete generic type parameters.
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 type of attribute to search for. Only attributes that are assignable to this type are returned.
- inherit
- Boolean
Specifies whether to search this member's inheritance chain to find the attributes.
Returns
Not supported for incomplete generic type parameters.
Exceptions
In all cases.
Remarks
This method is not supported for incomplete generic type parameters. Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.