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 プロパティ


このページでは「.NET Framework クラス ライブラリ リファレンス」からDirectoryEntry.SchemaEntry プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDirectoryEntry.SchemaEntry プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDirectoryEntry.SchemaEntry プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS