次の方法で共有


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

.NET Framework のセキュリティ

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

DirectoryEntry クラス
DirectoryEntry メンバ
System.DirectoryServices 名前空間
Path
Username
Password
AuthenticationTypes 列挙体
AuthenticationType