Localization.GetAttributes(Object) Methode

Definition

Ruft den Wert der AttributesProperty angefügten Eigenschaft aus einem angegebenen Element ab.

public:
 static System::String ^ GetAttributes(System::Object ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Object))]
public static string GetAttributes(object element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Object))>]
static member GetAttributes : obj -> string
Public Shared Function GetAttributes (element As Object) As String

Parameter

element
Object

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

Gibt zurück

Ein String Wert, der das Lokalisierungsattribut darstellt.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die lokalisierungsattribute abgerufen werden, die für eine Schaltfläche definiert sind.

Hinweise

Lokalisierungsattribute geben an, welche Ressourcen lokalisiert werden sollen.

Gilt für:

Weitere Informationen