RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Método
Definição
Recupera um objeto que representa uma propriedade especificada.Retrieves an object that represents a specified property.
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetRuntimeProperty(Type ^ type, System::String ^ name);
public static System.Reflection.PropertyInfo GetRuntimeProperty (this Type type, string name);
public static System.Reflection.PropertyInfo? GetRuntimeProperty (this Type type, string name);
static member GetRuntimeProperty : Type * string -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetRuntimeProperty (type As Type, name As String) As PropertyInfo
Parâmetros
- type
- Type
O tipo que contém a propriedade.The type that contains the property.
- name
- String
O nome da propriedade.The name of the property.
Retornos
Um objeto que representa a propriedade especificada ou null se a propriedade não for encontrada.An object that represents the specified property, or null if the property is not found.
Exceções
type não é um RuntimeType.type is not a RuntimeType.
Foi encontrada mais de uma propriedade com o nome solicitado.More than one property with the requested name was found.