DependencyPropertyDescriptor.FromName Method

Definition

Returns a DependencyPropertyDescriptor for a provided property name.

Overloads

FromName(String, Type, Type)

Returns a DependencyPropertyDescriptor for a provided property name.

FromName(String, Type, Type, Boolean)

Returns a DependencyPropertyDescriptor for a provided property name.

FromName(String, Type, Type)

Returns a DependencyPropertyDescriptor for a provided property name.

public:
 static System::ComponentModel::DependencyPropertyDescriptor ^ FromName(System::String ^ name, Type ^ ownerType, Type ^ targetType);
public static System.ComponentModel.DependencyPropertyDescriptor FromName (string name, Type ownerType, Type targetType);
static member FromName : string * Type * Type -> System.ComponentModel.DependencyPropertyDescriptor
Public Shared Function FromName (name As String, ownerType As Type, targetType As Type) As DependencyPropertyDescriptor

Parameters

name
String

The registered name of a dependency property or an attached property.

ownerType
Type

The Type of the object that owns the property definition.

targetType
Type

The Type of the object you want to set the property for.

Returns

The requested DependencyPropertyDescriptor.

Remarks

The name may refer to a dependency property or an attached property, and is the name parameter as passed to the Register or RegisterAttached call that defined the property in question. ownerType is the type of object that owns the property, again as passed to Register or RegisterAttached. targetType is the type of object you want to set the property for. For dependency properties, ownerType and targetType are the same type. For attached properties they usually differ.

Applies to

FromName(String, Type, Type, Boolean)

Returns a DependencyPropertyDescriptor for a provided property name.

public:
 static System::ComponentModel::DependencyPropertyDescriptor ^ FromName(System::String ^ name, Type ^ ownerType, Type ^ targetType, bool ignorePropertyType);
public static System.ComponentModel.DependencyPropertyDescriptor FromName (string name, Type ownerType, Type targetType, bool ignorePropertyType);
static member FromName : string * Type * Type * bool -> System.ComponentModel.DependencyPropertyDescriptor
Public Shared Function FromName (name As String, ownerType As Type, targetType As Type, ignorePropertyType As Boolean) As DependencyPropertyDescriptor

Parameters

name
String

The registered name of a dependency property or an attached property.

ownerType
Type

The Type of the object that owns the property definition.

targetType
Type

The Type of the object you want to set the property for.

ignorePropertyType
Boolean

Specifies to ignore the property type.

Returns

The requested DependencyPropertyDescriptor.

Remarks

The name may refer to a dependency property or an attached property, and is the name parameter as passed to the Register or RegisterAttached call that defined the property in question. ownerType is the type of object that owns the property, again as passed to Register or RegisterAttached. targetType is the type of object you want to set the property for. For dependency properties, ownerType and targetType are the same type. For attached properties they usually differ.

Applies to