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

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

DirectoryEntry.Username プロパティ

クライアント認証時に使用するユーザー名取得または設定します

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

解説解説
使用例使用例

DirectoryEntry クラスUsername プロパティPassword プロパティの例を次に示します。この例は、ユーザー指定した DirectoryEntry、およびそのすべての ChildrenPath取得します

Dim myADSPath As String
 = _
      "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam
,DC=com"

' Create an Instance of DirectoryEntry.
Dim myDirectoryEntry As New
 DirectoryEntry(myADSPath)
myDirectoryEntry.Username = UserName
myDirectoryEntry.Password = SecurelyStoredPassword

' Get the Child ADS objects.
Console.WriteLine("The Child ADS objects are:")
Dim myChildDirectoryEntry As DirectoryEntry
For Each myChildDirectoryEntry In
  myDirectoryEntry.Children
   Console.WriteLine(myChildDirectoryEntry.Path)
Next myChildDirectoryEntry
String myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp
,DC=fabrikam,DC=com";
 
// Create an Instance of DirectoryEntry.
DirectoryEntry myDirectoryEntry = new DirectoryEntry(myADSPath);
myDirectoryEntry.Username = UserName;
myDirectoryEntry.Password = SecurelyStoredPassword;

// Get the Child ADS objects.
Console.WriteLine("The Child ADS objects are:");
foreach(DirectoryEntry myChildDirectoryEntry in
 myDirectoryEntry.Children)
   Console.WriteLine(myChildDirectoryEntry.Path);
String^ myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp
,DC=fabrikam,DC=com";

// Create an Instance of DirectoryEntry.
DirectoryEntry^ myDirectoryEntry = new DirectoryEntry(myADSPath);
myDirectoryEntry->Username = UserName;
myDirectoryEntry->Password = SecurelyStoredPassword;

// Get the Child ADS objects.
Console::WriteLine("The Child ADS objects are:");
Collections::IEnumerator^ myEnum = myDirectoryEntry->Children->GetEnumerator();
while (myEnum->MoveNext()) 
{
    DirectoryEntry^ myChildDirectoryEntry = safe_cast<DirectoryEntry^>(myEnum->Current);
    Console::WriteLine(myChildDirectoryEntry->Path);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DirectoryEntry クラス
DirectoryEntry メンバ
System.DirectoryServices 名前空間
DirectoryEntry.Password プロパティ



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS