Localization.GetAttributes Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the value of the AttributesProperty attached property from a specified element.

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

public static string GetAttributes(
	object element


Type: System.Object

A Object that represents the element whose attached property you want to retrieve.

Return Value

Type: System.String

A String value that represents the localization attribute.

Localization attributes specify which resources are to be localized.

The following code example shows how to retrieve the localization attributes defined for a button.

.NET Framework
Available since 3.0
Return to top