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

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

DirectorySearcher.AttributeScopeQuery プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

検索対象とする識別名の属性LDAP 表示名取得または設定します。この種類検索では 1 つ属性だけを使用できます

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

<ComVisibleAttribute(False)> _
Public Property AttributeScopeQuery As
 String
Dim instance As DirectorySearcher
Dim value As String

value = instance.AttributeScopeQuery

instance.AttributeScopeQuery = value
[ComVisibleAttribute(false)] 
public string AttributeScopeQuery { get;
 set; }
[ComVisibleAttribute(false)] 
public:
property String^ AttributeScopeQuery {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_AttributeScopeQuery ()

/** @property */
public void set_AttributeScopeQuery (String
 value)
public function get AttributeScopeQuery
 () : String

public function set AttributeScopeQuery
 (value : String)

プロパティ
検索実行対象となる属性LDAP 表示名。または属性スコープクエリ設定されていない場合空の文字列

例外例外
例外種類条件

ArgumentException

SearchScope プロパティは、Base 以外の値に設定されています。

解説解説

このプロパティ設定する属性は、member や managedBy などの識別属性である必要があります。この属性には、単一の値または複数の値を設定できます詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) で、adschema に関するトピックMember」および「Managed-By」を参照してください

ベース オブジェクト属性指定される識別名で識別されるオブジェクトに対して検索実行されます。たとえば、ベース オブジェクトが adschema グループ クラスであり、AttributeScopeQuery が "member" に設定されている場合グループメンバであるすべてのオブジェクトに対して検索実行されます。詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library/ja) で adschema の "Group" クラストピック参照してください

AttributeScopeQuery プロパティ使用される場合SearchScope プロパティBase設定される必要がありますSearchScope プロパティが他のいずれかの値に設定され場合AttributeScopeQuery プロパティ設定するArgumentExceptionスローさます。

詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) の「Performing an Attribute Scope Query」を参照してください

使用例使用例

member 属性指定して AttributeScopeQuery プロパティ使用しグループメンバ取得する方法次のコード例示します。この例では、メンバ姓名、およびそれらの電話番号出力されます。

using System.DirectoryServices;
DirectoryEntry group = new DirectoryEntry("LDAP://CN=MyGroup,
 …");
DirectorySearcher src = new DirectorySearcher(group "(&(objectClass=user)(objectCategory=Person))");
src.AttributeScopedQuery = "member";
src.PropertiesToLoad = new string[] {"sn","givenName",
 "telephoneNumber"};
foreach(SearchResult res in src.FindAll())
{
    Console.WriteLine("…");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS