Share via


WebView.UserAgent 屬性

定義

取得或設定這個 WebView 物件所使用的使用者代理程式字串。

public:
 property System::String ^ UserAgent { System::String ^ get(); void set(System::String ^ value); };
public string UserAgent { get; set; }
member this.UserAgent : string with get, set
Public Property UserAgent As String

屬性值

實作

備註

預設值是基礎平台瀏覽器的預設使用者代理程式,如果 null 無法判斷,則為 。 如果 參數是 null 使用者代理程式將不會更新,而且目前的使用者代理程式將會保留。

適用於