Uri.IsDefaultPort プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Uri.IsDefaultPort プロパティの意味・解説 

Uri.IsDefaultPort プロパティ

URIポート値が、このスキーム既定ポートかどうかを示す値を取得します

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

Dim instance As Uri
Dim value As Boolean

value = instance.IsDefaultPort
public bool IsDefaultPort { get;
 }
public:
property bool IsDefaultPort {
    bool get ();
}
/** @property */
public boolean get_IsDefaultPort ()

プロパティ
Port プロパティの値がこのスキーム既定ポート場合trueそれ以外場合false

使用例使用例

Uri インスタンス作成し、このインスタンス既定ポート使用するかどうか確認する例を次に示します

' Create Uri
Dim uriAddress As New Uri("http://www.contoso.com/index.htm#search")
Console.WriteLine(uriAddress.Fragment)
Console.WriteLine("Uri {0} the default port ", IIf(uriAddress.IsDefaultPort,
 "uses", "does not use"))
 'TODO: For performance reasons this should be changed to nested IF statements

Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Path))
Console.WriteLine("Hash code {0}", uriAddress.GetHashCode())
// Create Uri
Uri uriAddress = new Uri("http://www.contoso.com/index.htm#search");
Console.WriteLine(uriAddress.Fragment);
Console.WriteLine("Uri {0} the default port ", uriAddress.IsDefaultPort
 ? "uses" : "does not use");
 
Console.WriteLine("The path of this Uri is {0}", uriAddress.GetLeftPart(UriPartial.Path));
Console.WriteLine("Hash code {0}", uriAddress.GetHashCode());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

Uri.IsDefaultPort プロパティのお隣キーワード
検索ランキング

   

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



Uri.IsDefaultPort プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS