ConstructorInfoWrapper.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.
Overloads
GetCustomAttributes(Boolean) |
Gets all the custom attributes applied to this member. |
GetCustomAttributes(Type, Boolean) |
Gets all the custom attributes applied to this member of the specified type. |
GetCustomAttributes(Boolean)
Gets all the custom attributes applied to this member.
public:
override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public:
override Platform::Array <Platform::Object ^> ^ GetCustomAttributes(bool inherit);
override std::Array <winrt::Windows::Foundation::IInspectable const &> 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
true
to search this member's inheritance chain to find the attributes; otherwise, false
.
Returns
Returns Object.
Applies to
GetCustomAttributes(Type, Boolean)
Gets all the custom attributes applied to this member of the specified type.
public:
override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public:
override Platform::Array <Platform::Object ^> ^ GetCustomAttributes(Platform::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
- inherit
- Boolean
true
to search this member's inheritance chain to find the attributes; otherwise, false
.
Returns
Returns Object.