CustomReflectionContext.GetCustomAttributes Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Ha egy származtatott osztályban felül van bírálva, a megadott objektumhoz tartozó egyéni attribútumok módosított gyűjteményét adja meg, ahogyan az ebben a tükröződési környezetben látható.
Túlterhelések
| Name | Description |
|---|---|
| GetCustomAttributes(MemberInfo, IEnumerable<Object>) |
Ha felül van bírálva egy származtatott osztályban, a megadott tag egyéni attribútumainak listáját adja meg, ahogyan az ebben a tükröződési környezetben látható. |
| GetCustomAttributes(ParameterInfo, IEnumerable<Object>) |
Ha felül van bírálva egy származtatott osztályban, a megadott paraméterhez tartozó egyéni attribútumok listáját adja meg, az ebben a tükröződési környezetben látható módon. |
GetCustomAttributes(MemberInfo, IEnumerable<Object>)
Ha felül van bírálva egy származtatott osztályban, a megadott tag egyéni attribútumainak listáját adja meg, ahogyan az ebben a tükröződési környezetben látható.
protected:
virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes(System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.MemberInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (member As MemberInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
Paraméterek
- member
- MemberInfo
Az a tag, akinek az egyéni attribútumai vissza lesznek adva.
- declaredAttributes
- IEnumerable<Object>
A tag attribútumainak gyűjteménye a jelenlegi kontextusban.
Válaszok
Egy gyűjtemény, amely a megadott tag egyéni attribútumait jelöli ebben a tükröződési környezetben.
A következőre érvényes:
GetCustomAttributes(ParameterInfo, IEnumerable<Object>)
Ha felül van bírálva egy származtatott osztályban, a megadott paraméterhez tartozó egyéni attribútumok listáját adja meg, az ebben a tükröződési környezetben látható módon.
protected:
virtual System::Collections::Generic::IEnumerable<System::Object ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ parameter, System::Collections::Generic::IEnumerable<System::Object ^> ^ declaredAttributes);
protected virtual System.Collections.Generic.IEnumerable<object> GetCustomAttributes(System.Reflection.ParameterInfo parameter, System.Collections.Generic.IEnumerable<object> declaredAttributes);
abstract member GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
override this.GetCustomAttributes : System.Reflection.ParameterInfo * seq<obj> -> seq<obj>
Protected Overridable Function GetCustomAttributes (parameter As ParameterInfo, declaredAttributes As IEnumerable(Of Object)) As IEnumerable(Of Object)
Paraméterek
- parameter
- ParameterInfo
Az a paraméter, amelynek egyéni attribútumait a rendszer visszaadja.
- declaredAttributes
- IEnumerable<Object>
A paraméter attribútumainak gyűjteménye a jelenlegi környezetben.
Válaszok
Gyűjtemény, amely a megadott paraméter egyéni attribútumait jelöli ebben a tükröződési környezetben.