HttpWebClientProtocol.UserAgent プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As HttpWebClientProtocol Dim value As String value = instance.UserAgent instance.UserAgent = value
/** @property */ public String get_UserAgent () /** @property */ public void set_UserAgent (String value)
HTTP プロトコル ユーザー エージェント ヘッダーの値。既定値は "MS Web Services Client Protocol number" です。number は、共通言語ランタイムのバージョンです (例 : 1.0.3705.0)。


' MyMath is a proxy class. Dim objMyMath As MyMath = new MyMath() ' Get the default user agent. Console.WriteLine("Default user agent is: " & objMyMath.UserAgent) objMyMath.UserAgent = "My Agent" Console.WriteLine("Modified user agent is: " & objMyMath.UserAgent)
// MyMath is a proxy class. MyMath objMyMath = new MyMath(); // Get the default user agent. Console.WriteLine("Default user agent is: " + objMyMath.UserAgent); objMyMath.UserAgent = "My Agent"; Console.WriteLine("Modified user agent is: " + objMyMath.UserAgent);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpWebClientProtocol.UserAgent プロパティのページへのリンク