HttpStaticObjectsCollection 類別

定義

提供 StaticObjects 屬性之應用程式範圍物件的集合。Provides a collection of application-scoped objects for the StaticObjects property.

public ref class HttpStaticObjectsCollection sealed : System::Collections::ICollection
public sealed class HttpStaticObjectsCollection : System.Collections.ICollection
type HttpStaticObjectsCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class HttpStaticObjectsCollection
Implements ICollection
繼承
HttpStaticObjectsCollection
實作

建構函式

HttpStaticObjectsCollection()

初始化 HttpStaticObjectsCollection 類別的新執行個體。Initializes a new instance of the HttpStaticObjectsCollection class.

屬性

Count

取得集合中的物件數目。Gets the number of objects in the collection.

IsReadOnly

取得值,表示集合是否為唯讀。Gets a value indicating whether the collection is read-only.

IsSynchronized

取得值,指出集合是否已同步化 (亦即,安全執行緒)。Gets a value indicating whether the collection is synchronized (that is, thread-safe).

Item[String]

以指定名稱從集合取得物件。Gets the object with the specified name from the collection.

NeverAccessed

取得布林值,指出集合是否已存取過。Gets a Boolean value indicating whether the collection has been accessed before.

SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。Gets an object that can be used to synchronize access to the collection.

方法

CopyTo(Array, Int32)

複製 HttpStaticObjectsCollection 的成員至陣列。Copies members of an HttpStaticObjectsCollection into an array.

Deserialize(BinaryReader)

從使用 HttpStaticObjectsCollection 方法所撰寫的二進位檔,建立 Serialize(BinaryWriter) 物件。Creates an HttpStaticObjectsCollection object from a binary file that was written by using the Serialize(BinaryWriter) method.

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

傳回字典列舉值,用以在包含於集合中的索引鍵數值配對中重複。Returns a dictionary enumerator used for iterating through the key-and-value pairs contained in the collection.

GetHashCode()

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

(繼承來源 Object)
GetObject(String)

以指定名稱從集合傳回物件。Returns the object with the specified name from the collection. 這個屬性是 this 存取子 (Accessor) 的替代。This property is an alternative to the this accessor.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Serialize(BinaryWriter)

將集合內容寫入 BinaryWriter 物件。Writes the contents of the collection to a BinaryWriter object.

ToString()

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

(繼承來源 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.

適用於