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

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

DirectoryEntry.SchemaEntry プロパティ

このエントリのスキーマ オブジェクトを取得します。

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

Public ReadOnly Property
 SchemaEntry As DirectoryEntry
Dim instance As DirectoryEntry
Dim value As DirectoryEntry

value = instance.SchemaEntry
public DirectoryEntry SchemaEntry { get; }
public:
property DirectoryEntry^ SchemaEntry {
    DirectoryEntry^ get ();
}
/** @property */
public DirectoryEntry get_SchemaEntry ()
public function get SchemaEntry
 () : DirectoryEntry

プロパティ値
このエントリのスキーマ クラスを表す DirectoryEntry オブジェクト。

解説解説
使用例使用例

DirectoryEntry クラスの SchemaClassName プロパティと SchemaEntry プロパティの例を次に示します。この例では、ユーザーが指定した DirectoryEntry オブジェクトを取得し、SchemaEntry オブジェクトがコンテナ オブジェクトである場合は、そのすべての子も取得します。SchemaEntry は、そのオブジェクトの Name が "container" である場合、コンテナ オブジェクトです。

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

' Creates an Instance of DirectoryEntry.
Dim myDirectoryEntry As New
 DirectoryEntry(myADSPath, UserName, SecurelyStoredPassword)

' Display the 'SchemaClassName'.
Console.WriteLine("Schema class name:" + myDirectoryEntry.SchemaClassName)

' Gets the SchemaEntry of the ADS object.
Dim mySchemaEntry As DirectoryEntry = myDirectoryEntry.SchemaEntry

If String.Compare(mySchemaEntry.Name, "container")
 = 0 Then
   Dim myChildDirectoryEntry As DirectoryEntry
   For Each myChildDirectoryEntry In
  myDirectoryEntry.Children
      Console.WriteLine(myChildDirectoryEntry.Path)
   Next
String myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp
,DC=fabrikam,DC=com";

// Creates an Instance of DirectoryEntry.
DirectoryEntry  myDirectoryEntry=new DirectoryEntry(myADSPath,
 UserName, SecurelyStoredPassword);

// Display the 'SchemaClassName'.
Console.WriteLine("Schema class name:"+myDirectoryEntry.SchemaClassName);

// Gets the SchemaEntry of the ADS object.
DirectoryEntry mySchemaEntry = myDirectoryEntry.SchemaEntry;

if (string.Compare(mySchemaEntry.Name,"container")
 == 0)
{
   foreach(DirectoryEntry myChildDirectoryEntry in
 myDirectoryEntry.Children)
      Console.WriteLine(myChildDirectoryEntry.Path);
}
String^ myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp
,DC=fabrikam,DC=com";

// Creates an Instance of DirectoryEntry.
DirectoryEntry^ myDirectoryEntry = gcnew DirectoryEntry(myADSPath, UserName, SecurelyStoredPassword);

// Display the 'SchemaClassName'.
Console::WriteLine("Schema class name:{0}", myDirectoryEntry->SchemaClassName);

// Gets the SchemaEntry of the ADS Object*.
DirectoryEntry^ mySchemaEntry = myDirectoryEntry->SchemaEntry;

if (!String::Compare(mySchemaEntry->Name, S"container"))
 
{
    Collections::IEnumerator^ myEnum = myDirectoryEntry->Children->GetEnumerator();
    while (myEnum->MoveNext()) 
    {
        DirectoryEntry^ myChildDirectoryEntry = safe_cast<DirectoryEntry^>(myEnum->Current);
        Console::WriteLine(myChildDirectoryEntry->Path);
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DirectoryEntry クラス
DirectoryEntry メンバ
System.DirectoryServices 名前空間
DirectoryEntry.SchemaClassName プロパティ



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



DirectoryEntry.SchemaEntry プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS