RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) RuntimeReflectionExtensions.GetRuntimeProperty(Type, String) Method

Definition

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);
static member GetRuntimeProperty : Type * string -> System.Reflection.PropertyInfo

Parameters

type
Type Type Type

The type that contains the property.

name
String String String

The name of the property.

Returns

An object that represents the specified property, or null if the property is not found.

Exceptions

More than one property with the requested name was found.

Applies to

See also