Uri.UriSchemeHttp フィールド
アセンブリ: System (system.dll 内)
構文
使用例
Uri インスタンスを作成し、スキームが UriSchemeHttp であるかどうかを判断する例を次に示します。
Dim address1 As New Uri("http://www.contoso.com/index.htm#search") Console.WriteLine("address 1 {0} a valid scheme name", IIf(Uri.CheckSchemeName(address1.Scheme), " has", " does not have")) 'TODO: For performance reasons this should be changed to nested IF statements If address1.Scheme = Uri.UriSchemeHttp Then Console.WriteLine("Uri is HTTP type") End If Console.WriteLine(address1.HostNameType)
Uri address1 = new Uri("http://www.contoso.com/index.htm#search"); Console.WriteLine("address 1 {0} a valid scheme name", Uri.CheckSchemeName(address1.Scheme) ? " has" : " does not have"); if (address1.Scheme == Uri.UriSchemeHttp) Console.WriteLine("Uri is HTTP type"); Console.WriteLine(address1.HostNameType);
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- Uri.UriSchemeHttp フィールドのページへのリンク