PropertyBuilder.GetCustomAttributes Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vrátí všechny vlastní atributy definované pro tuto vlastnost.
Přetížení
| Name | Description |
|---|---|
| GetCustomAttributes(Type, Boolean) |
Vrátí pole vlastních atributů identifikovaných funkcí Type. |
| GetCustomAttributes(Boolean) |
Vrátí pole všech vlastních atributů pro tuto vlastnost. |
GetCustomAttributes(Type, Boolean)
- Zdroj:
- PropertyBuilder.cs
Vrátí pole vlastních atributů identifikovaných funkcí 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()
Parametry
- attributeType
- Type
Pole vlastních atributů identifikovaných podle typu
- inherit
- Boolean
Pokud true, provede řetěz dědičnosti této vlastnosti najít vlastní atributy.
Návraty
Pole vlastních atributů definovaných pro tento odrazový člen nebo null pokud nejsou pro tohoto člena definovány žádné atributy.
Výjimky
Tato metoda není podporována.
Poznámky
Reflect on the property's parent type using Type.GetType or Assembly.GetType, retrieve the Reflection property object from the type, and call PropertyInfo.GetCustomAttributes.
Platí pro
GetCustomAttributes(Boolean)
- Zdroj:
- PropertyBuilder.cs
Vrátí pole všech vlastních atributů pro tuto vlastnost.
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()
Parametry
- inherit
- Boolean
Pokud true, provede řetěz dědičnosti této vlastnosti najít vlastní atributy.
Návraty
Pole všechvlastníchch
Výjimky
Tato metoda není podporována.
Poznámky
Reflect on the property's parent type using Type.GetType or Assembly.GetType, retrieve the Reflection property object from the type, and call PropertyInfo.GetCustomAttributes.