This documentation is archived and is not being maintained.

DependencyPropertyDescriptor.FromName Method

Returns a DependencyPropertyDescriptor for a provided property name.

Namespace: System.ComponentModel
Assembly: WindowsBase (in windowsbase.dll)

public static DependencyPropertyDescriptor FromName (
	string name,
	Type ownerType,
	Type targetType
)
public static DependencyPropertyDescriptor FromName (
	String name, 
	Type ownerType, 
	Type targetType
)
public static function FromName (
	name : String, 
	ownerType : Type, 
	targetType : Type
) : DependencyPropertyDescriptor
You cannot use methods in XAML.

Parameters

name

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

ownerType

The Type of the object that owns the property definition.

targetType

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

Return Value

The requested DependencyPropertyDescriptor.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: