GetAttributes Method
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Localization.GetAttributes Method

Get 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
/** @attribute AttachedPropertyBrowsableForTypeAttribute(System.Object) */ 
public static String GetAttributes (
	Object element
public static function GetAttributes (
	element : Object
) : String
You cannot use methods in XAML.



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

Return Value

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.

// Retreive the localization attributes from the button.
string attributes = Localization.GetAttributes(buttonLocalized);

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
© 2016 Microsoft