Localization.GetAttributes(Object) 方法

定義

從指定的項目取得 AttributesProperty 附加屬性的值。

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

參數

element
Object

Object,表示您要擷取其附加屬性的項目。

傳回

String 值,表示當地語系化屬性。

屬性

範例

下列程式碼範例示範如何擷取為按鈕定義的當地語系化屬性。

備註

當地語系化屬性會指定要當地語系化的資源。

適用於

另請參閱