語言

PropertyCollection 類別

定義

該 PropertyCollection 類別包含 的性質 DirectoryEntry。

public ref class PropertyCollection : System::Collections::IDictionary
public class PropertyCollection : System.Collections.IDictionary
type PropertyCollection = class
    interface ICollection
    interface IEnumerable
    interface IDictionary
type PropertyCollection = class
    interface IDictionary
    interface ICollection
    interface IEnumerable
Public Class PropertyCollection
Implements IDictionary
繼承
PropertyCollection
實作

屬性

名稱 Description
Count

取得此集合中的屬性數量。

Item[String]

取得指定的屬性。

PropertyNames

取得此集合中屬性名稱。

Values

取得此集合中屬性的值。

方法

名稱 Description
Contains(String)

判斷指定屬性是否屬於此集合。

CopyTo(PropertyValueCollection[], Int32)

將此集合中的所有物件從目標陣列指定的索引開始複製到陣列。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

回傳一個枚舉子,你可以用來遍歷這個集合。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

明確介面實作

名稱 Description
ICollection.CopyTo(Array, Int32)

從特定ICollection索引開始,將 的Array元素複製到 Array。

ICollection.IsSynchronized

取得值,指出是否同步存取 ICollection (線程安全)。

ICollection.SyncRoot

取得一個物件,可用來同步存取 ICollection。

IDictionary.Add(Object, Object)

將所提供的鍵值與值加入一個元素到物件上 IDictionary 。

IDictionary.Clear()

移除物件中 IDictionary 的所有元素。

IDictionary.Contains(Object)

判斷物件是否 IDictionary 包含具有指定鍵值的元素。

IDictionary.IsFixedSize

取得值,指出 IDictionary 物件是否具有固定大小。

IDictionary.IsReadOnly

會取得一個值,表示該物件是否 IDictionary 為唯讀。

IDictionary.Item[Object]

取得或設定具有指定索引鍵的專案。

IDictionary.Keys

取得 ICollection 包含該 IDictionary 物件鍵的物件。

IDictionary.Remove(Object)

從物件中移除指定鍵的 IDictionary 元素。

IEnumerable.GetEnumerator()

回傳一個 IEnumerable 物件。

擴充方法

名稱 Description
AsParallel(IEnumerable)

啟用查詢的平行處理。

AsQueryable(IEnumerable)

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)

將 IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別篩選 IEnumerable 的專案。

適用於