PropertyCollection PropertyCollection PropertyCollection PropertyCollection Class

定義

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
繼承
PropertyCollectionPropertyCollectionPropertyCollectionPropertyCollection
實作

屬性

Count Count Count Count

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

Item[String] Item[String] Item[String] Item[String]

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

PropertyNames PropertyNames PropertyNames PropertyNames

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

Values Values Values Values

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

方法

Contains(String) Contains(String) Contains(String) Contains(String)

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

CopyTo(PropertyValueCollection[], Int32) CopyTo(PropertyValueCollection[], Int32) CopyTo(PropertyValueCollection[], Int32) CopyTo(PropertyValueCollection[], Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

明確介面實作

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

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

IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object)

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

IDictionary.Clear() IDictionary.Clear() IDictionary.Clear() IDictionary.Clear()

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

IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object)

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

IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize

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

IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly

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

IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object]

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

IDictionary.Keys IDictionary.Keys IDictionary.Keys IDictionary.Keys

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

IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object)

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

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

傳回 IEnumerable 物件。Returns an IEnumerable object.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

安全性

DirectoryServicesPermission
LinkDemand

適用於