DirectoryEntry コンストラクタ ()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DirectoryEntry コンストラクタ ()の意味・解説 

DirectoryEntry コンストラクタ ()


DirectoryEntry コンストラクタ (String)

指定したパスにある Active Directoryノードバインドする DirectoryEntry クラス新しインスタンス初期化します。

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

public DirectoryEntry (
    string path
)
public:
DirectoryEntry (
    String^ path
)
public DirectoryEntry (
    String path
)
public function DirectoryEntry (
    path : String
)

パラメータ

path

DirectoryEntry(String)ディレクトリバインドするパスPath プロパティは、この値に初期化されます

使用例使用例

DirectoryEntry オブジェクト指定したパスディレクトリ エントリバインドし、そのノードChildren プロパティ指定される各子エントリPath プロパティ出力するコード例次に示します

Public Class PrintChildren
    
    'Entry point which delegates to C-style main Private Function.
    Public Overloads Shared
 Sub Main()
        Main(System.Environment.GetCommandLineArgs())
    End Sub
    
    Overloads Public Shared
 Sub Main(args() As String)
        Dim objDE As DirectoryEntry
        Dim strPath As String
 = "LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com"
        If args.Length > 0 Then
            strPath = args(1)
        End If 
        ' Create a new DirectoryEntry with the given path.
        objDE = New DirectoryEntry(strPath)
        
        Dim objChildDE As DirectoryEntry
        For Each objChildDE In
  objDE.Children
            Console.WriteLine(objChildDE.Path)
        Next objChildDE
    End Sub 'Main
End Class 'PrintChildren 

public class PrintChildren{
   public static void Main(String[]
 args)
   {
      DirectoryEntry objDE;
      String strPath="LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com";
      if(args.Length>0)strPath=args[1];
 
      // Create a new DirectoryEntry with the given path.
      objDE=new DirectoryEntry(strPath);
 
      foreach(DirectoryEntry objChildDE in
 objDE.Children)
        Console.WriteLine(objChildDE.Path);
   }
 }
int main()
{
    String^ args[] = Environment::GetCommandLineArgs();
    DirectoryEntry^ objDE;
    String^ strPath = "LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com";
    if(args->Length>1)
    {
        strPath=args[1];
    }

    // Create a new DirectoryEntry with the given path.
    objDE = gcnew DirectoryEntry(strPath);

    System::Collections::IEnumerator^ enum0 = objDE->Children->GetEnumerator();
    while (enum0->MoveNext())
    {
        DirectoryEntry^ objChildDE = safe_cast<DirectoryEntry^>(enum0->Current);
        Console::WriteLine(objChildDE->Path);
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
  • DirectoryServicesPermission  Demand
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

DirectoryEntry コンストラクタ (String, String, String)

DirectoryEntry クラス新しインスタンス初期化します。

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

.NET Framework のセキュリティ.NET Frameworkセキュリティ
  • DirectoryServicesPermission  Demand
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

DirectoryEntry コンストラクタ


DirectoryEntry コンストラクタ (String, String, String, AuthenticationTypes)

DirectoryEntry クラス新しインスタンス初期化します。

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

Public Sub New ( _
    path As String, _
    username As String, _
    password As String, _
    authenticationType As AuthenticationTypes _
)
Dim path As String
Dim username As String
Dim password As String
Dim authenticationType As AuthenticationTypes

Dim instance As New DirectoryEntry(path,
 username, password, authenticationType)
public DirectoryEntry (
    string path,
    string username,
    string password,
    AuthenticationTypes authenticationType
)
public:
DirectoryEntry (
    String^ path, 
    String^ username, 
    String^ password, 
    AuthenticationTypes authenticationType
)
public DirectoryEntry (
    String path, 
    String username, 
    String password, 
    AuthenticationTypes authenticationType
)
public function DirectoryEntry (
    path : String, 
    username : String, 
    password : String, 
    authenticationType : AuthenticationTypes
)

パラメータ

path
username

クライアント認証時に使用するユーザー名Username プロパティは、この値に初期化されます

password
authenticationType

AuthenticationTypes 値の 1 つ。AuthenticationType プロパティは、この値に初期化されます

.NET Framework のセキュリティ.NET Frameworkセキュリティ
  • DirectoryServicesPermission  Demand
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DirectoryEntry クラス
DirectoryEntry メンバ
System.DirectoryServices 名前空間
Path
Username
Password
AuthenticationTypes 列挙
AuthenticationType

DirectoryEntry コンストラクタ (Object)

指定したネイティブ Active Directory オブジェクトバインドする DirectoryEntry クラス新しインスタンス初期化します。

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

Public Sub New ( _
    adsObject As Object _
)
Dim adsObject As Object

Dim instance As New DirectoryEntry(adsObject)
public DirectoryEntry (
    Object adsObject
)
public:
DirectoryEntry (
    Object^ adsObject
)
public DirectoryEntry (
    Object adsObject
)
public function DirectoryEntry (
    adsObject : Object
)

パラメータ

adsObject

バインドするネイティブ Active Directory オブジェクトの名前。

解説解説
.NET Framework のセキュリティ.NET Frameworkセキュリティ
  • DirectoryServicesPermission  Demand
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「DirectoryEntry コンストラクタ ()」の関連用語

DirectoryEntry コンストラクタ ()のお隣キーワード
検索ランキング

   

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



DirectoryEntry コンストラクタ ()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS