COMPropertyInfo.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.
Returns an array that contains the custom attributes that are attached to this property.
Overloads
GetCustomAttributes(Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Returns an array that contains the custom attributes that are attached to this property. |
GetCustomAttributes(Type, Boolean) |
This API supports the product infrastructure and is not intended to be used directly from your code. Returns an array that contains the custom attributes that are attached to this property, searching only for attributes of the specified type. |
GetCustomAttributes(Boolean)
Returns an array that contains the custom attributes that are attached to this property.
This API supports the product infrastructure and is not intended to be used directly from your code.
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
true
to search this member's inheritance hierarchy to find the attributes.
Returns
An array of FieldInfo objects that has zero elements.
See also
Applies to
GetCustomAttributes(Type, Boolean)
Returns an array that contains the custom attributes that are attached to this property, searching only for attributes of the specified type.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ t, bool inherit);
public override object[] GetCustomAttributes (Type t, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (t As Type, inherit As Boolean) As Object()
Parameters
- t
- Type
The type of attribute to search for.
- inherit
- Boolean
true
to search this member's inheritance hierarchy to find the attributes.
Returns
An array of FieldInfo objects that has zero elements.
See also
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應