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

Uri.UserInfo プロパティ

指定した URI関連付けられているユーザー名パスワードなどのユーザー固有の情報取得します

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

Dim instance As Uri
Dim value As String

value = instance.UserInfo
public string UserInfo { get;
 }
public:
property String^ UserInfo {
    String^ get ();
}
/** @property */
public String get_UserInfo ()

プロパティ
URI関連付けられているユーザー情報を含む String戻り値には、URIユーザー情報部分区切り記号として予約されている '@' 文字含まれません。

解説解説

このプロパティ戻り値形式は、通常、"userName:password" です。

使用例使用例

Uri インスタンス作成しユーザー情報コンソール出力する例を次に示します

Dim uriAddress As New Uri("http://user:password@www.contoso.com/index.htm
 ")
Console.WriteLine(uriAddress.UserInfo)
Console.WriteLine("Fully Escaped {0}", IIf(uriAddress.UserEscaped,
 "yes", "no")) 'TODO:
 For performance reasons this should be changed to nested IF statements
    
Uri uriAddress = new Uri ("http://user:password@www.contoso.com/index.htm
 ");
Console.WriteLine(uriAddress.UserInfo);
Console.WriteLine("Fully Escaped {0}", uriAddress.UserEscaped ? "yes"
 : "no");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS