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

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

SearchResult.Properties プロパティ

このオブジェクトプロパティの ResultPropertyCollection コレクション取得します

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

Public ReadOnly Property
 Properties As ResultPropertyCollection
Dim instance As SearchResult
Dim value As ResultPropertyCollection

value = instance.Properties
public ResultPropertyCollection Properties { get;
 }
public:
property ResultPropertyCollection^ Properties {
    ResultPropertyCollection^ get ();
}
/** @property */
public ResultPropertyCollection get_Properties ()
public function get Properties
 () : ResultPropertyCollection

プロパティ
オブジェクト設定されプロパティResultPropertyCollection

解説解説

このコレクションは、DirectorySearcher.PropertiesToLoad を通じて明示的に要求されプロパティだけを格納します

使用例使用例

次の例は、SearchResult の例の抜粋です。元の例は、目的パスを持つ新しい DirectoryEntry オブジェクト作成し、FindOne メソッド使用して検索実行します。この例では、検索実行した後、GetDirectoryEntry メソッド使用して検索結果示されるライブ ディレクトリ エントリを取得します

この例は、検索結果ResultPropertyCollection格納します次に、各プロパティコンソール ウィンドウ表示します

' Get the properties for 'mySearchResult'.
Dim myResultPropColl As ResultPropertyCollection
myResultPropColl = mySearchResult.Properties
Console.WriteLine("The properties of the 'mySearchResult'
 are :")
Dim myKey As String
For Each myKey In  myResultPropColl.PropertyNames
   Dim tab1 As String =
 "    "
   Console.WriteLine(myKey + " = ")
   Dim myCollection As Object
   For Each myCollection In
  myResultPropColl(myKey)
      Console.WriteLine(tab1 + myCollection)
   Next myCollection
Next myKey

// Get the properties for 'mySearchResult'.
ResultPropertyCollection myResultPropColl;
myResultPropColl = mySearchResult.Properties;
Console.WriteLine("The properties of the " + 
                  "'mySearchResult' are :");
foreach( string myKey in myResultPropColl.PropertyNames)
{
   string tab = "    ";
   Console.WriteLine(myKey + " = ");
   foreach( Object myCollection in myResultPropColl[myKey])
   {
      Console.WriteLine(tab + myCollection);
   }
}

// Get the properties for 'mySearchResult'.
ResultPropertyCollection^ myResultPropColl = mySearchResult->Properties;
Console::WriteLine("The properties of the 'mySearchResult'
 are :");
IEnumerator^ myEnum = myResultPropColl->PropertyNames->GetEnumerator();
while (myEnum->MoveNext()) 
{
    String^ myKey = safe_cast<String^>(myEnum->Current);
    Console::WriteLine("{0} = ", myKey);
    IEnumerator^ myEnum = myResultPropColl->Item[myKey]->GetEnumerator();
    while (myEnum->MoveNext()) 
    {
        Console::WriteLine("\t{0}", myEnum->Current);
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS