共用方式為


DeviceSpecificChoice.SetAttribute(String, String) 方法

定義

將指定的值指派給索引鍵所指定的屬性。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

protected:
 void SetAttribute(System::String ^ key, System::String ^ value);
protected void SetAttribute (string key, string value);
member this.SetAttribute : string * string -> unit
Protected Sub SetAttribute (key As String, value As String)

參數

key
String

要設定的屬性名稱。

value
String

指派給屬性的值。

適用於

另請參閱