Name Property

DependencyProperty.Name Property


Gets the name of the . GTMT

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public string Name { get; }

Property Value

Type: System.String

The name of the property.

This property gets the name provided as the name parameter during dependency property registration. This name is immutable, and cannot be null or an empty string. Duplicate name registrations on the same owner type are not permitted, and will throw an exception when you attempt to register the duplicate.


The Name of a dependency property must follow the convention of matching the name of its dependency property identifier minus the suffix "Property". For details, see Custom Dependency Properties.

The following example queries various characteristics of a dependency property identifier, including the Name.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft