TypeDelegator.GetPropertyImpl Metoda

Definicja

W przypadku zastąpienia w klasie pochodnej wyszukuje określoną właściwość, której parametry są zgodne z określonymi typami argumentów i modyfikatorami przy użyciu określonych ograniczeń powiązania.

protected:
 override System::Reflection::PropertyInfo ^ GetPropertyImpl(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.PropertyInfo? GetPropertyImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, Type? returnType, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.PropertyInfo GetPropertyImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetPropertyImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Protected Overrides Function GetPropertyImpl (name As String, bindingAttr As BindingFlags, binder As Binder, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

Parametry

name
String

Właściwość do pobrania.

bindingAttr
BindingFlags

Maska bitowa, która wpływa na sposób przeprowadzania wyszukiwania. Wartość jest kombinacją flag zero lub więcej bitów z BindingFlags.

binder
Binder

Obiekt, który umożliwia powiązanie, wymuszanie typów argumentów, wywołanie elementów członkowskich i pobieranie obiektów za pośrednictwem odbicia MemberInfo . Jeśli binder jest to null, jest używany domyślny binder. Zobacz: .

returnType
Type

Zwracany typ właściwości.

types
Type[]

Lista typów parametrów. Lista reprezentuje liczbę, kolejność i typy parametrów. Typy nie mogą mieć wartości null; użyj odpowiedniej GetMethod metody lub pustej tablicy, aby wyszukać metodę bez parametrów.

modifiers
ParameterModifier[]

Tablica o tej samej długości co typy z elementami reprezentującymi atrybuty skojarzone z parametrami metody do pobrania.

Zwraca

PropertyInfo Obiekt właściwości zgodnej z określonymi kryteriami lub null, jeśli nie można odnaleźć dopasowania.

Dotyczy