Localization.SetAttributes(Object, String) 方法

定義

設定指定之項目的 AttributesProperty 附加屬性。

public:
 static void SetAttributes(System::Object ^ element, System::String ^ attributes);
public static void SetAttributes (object element, string attributes);
static member SetAttributes : obj * string -> unit
Public Shared Sub SetAttributes (element As Object, attributes As String)

參數

element
Object

Object,表示您要設定其附加屬性的項目。

attributes
String

String,指定當地語系化屬性。

範例

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

備註

當地語系化屬性會指定要當地語系化的資源。 如需如何定義當地語系化屬性的詳細資訊,請參閱 當地語系化屬性和批註

適用於

另請參閱