PropertyCollection 類別

定義

PropertyCollection 類別包含 DirectoryEntry 的屬性。The PropertyCollection class contains the properties of a DirectoryEntry.

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

屬性

Count

取得這個集合中的屬性數目。Gets the number of properties in this collection.

Item[String]

取得指定的屬性。Gets the specified property.

PropertyNames

取得這個集合中的屬性名稱。Gets the names of the properties in this collection.

Values

取得這個集合中的屬性值。Gets the values of the properties in this collection.

方法

Contains(String)

決定指定的屬性是否在這個集合中。Determines whether the specified property is in this collection.

CopyTo(PropertyValueCollection[], Int32)

從目標陣列的指定索引處開始,將這個集合中的所有物件複製到陣列中。Copies the all objects in this collection to an array, starting at the specified index in the target array.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

傳回您可以用來逐一查看這個集合的列舉值。Returns an enumerator that you can use to iterate through this collection.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從特定的 ICollection 索引開始,將 Array 的項目複製到 ArrayCopies the elements of the ICollection to an Array, starting at a particular Array index.

ICollection.IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

ICollection.SyncRoot

取得可用以同步存取 ICollection 的物件。Gets an object that can be used to synchronize access to the ICollection.

IDictionary.Add(Object, Object)

將隨附有索引鍵和值的項目加入至 IDictionary 物件。Adds an element with the provided key and value to the IDictionary object.

IDictionary.Clear()

將所有項目從 IDictionary 物件移除。Removes all elements from the IDictionary object.

IDictionary.Contains(Object)

判斷 IDictionary 物件是否包含具有指定索引鍵的項目。Determines whether the IDictionary object contains an element with the specified key.

IDictionary.IsFixedSize

取得值,指出 IDictionary 物件是否具有固定的大小。Gets a value indicating whether the IDictionary object has a fixed size.

IDictionary.IsReadOnly

取得值,這個值表示 IDictionary 物件是否唯讀。Gets a value indicating whether the IDictionary object is read-only.

IDictionary.Item[Object]

取得或設定具有指定索引鍵的項目。Gets or sets the element with the specified key.

IDictionary.Keys

取得 ICollection 物件,其中包含 IDictionary 物件的索引鍵。Gets an ICollection object containing the keys of the IDictionary object.

IDictionary.Remove(Object)

IDictionary 物件中移除具有指定索引鍵的項目。Removes the element with the specified key from the IDictionary object.

IEnumerable.GetEnumerator()

傳回 IEnumerable 物件。Returns an IEnumerable object.

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

安全性

DirectoryServicesPermission
LinkDemand

適用於