Uri.op_Inequality メソッドとは? わかりやすく解説

Uri.op_Inequality メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

2 つUri インスタンスの値が同一でないかどうか判断します

名前空間: System
アセンブリ: System (system.dll 内)
構文構文

解説解説
使用例使用例

この例では、文字列から 3 つの Uri インスタンス作成し、これらを比較して、同じ値を表すかどうか判断しますAddress2 にない QueryAddress3存在するので、Address2Address3同一ではありません。結果コンソール出力されます。

' Create some Uris.
Dim address1 As New Uri("http://www.contoso.com/index.htm#search")
Dim address2 As New Uri("http://www.contoso.com/index.htm")
Dim address3 As New Uri("http://www.contoso.com/index.htm?date=today")

' The first two are equal because the fragment is ignored.
If address1 = address2 Then
    Console.WriteLine("{0} is equal to {1}", address1.ToString(),
 address2.ToString())
End If 
' The second two are not equal.
If address2 <> address3 Then
    Console.WriteLine("{0} is not equal to {1}", address2.ToString(),
 address3.ToString())
End If
// Create some Uris.
Uri address1 = new Uri("http://www.contoso.com/index.htm#search");
Uri address2 = new Uri("http://www.contoso.com/index.htm");
 
Uri address3 = new Uri("http://www.contoso.com/index.htm?date=today");
 

// The first two are equal because the fragment is ignored.
if (address1 == address2)
    Console.WriteLine("{0} is equal to {1}", address1.ToString(), address2.ToString());

// The second two are not equal.
if (address2 != address3)
    Console.WriteLine("{0} is not equal to {1}", address2.ToString(), address3.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Uri.op_Inequality メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Uri.op_Inequality メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS