HttpStaticObjectsCollectionBase 類別

定義

作為提供 StaticObjects 屬性應用程式範圍物件集合之類別的基底類別。Serves as the base class for classes that provide a collection of application-scoped objects for the StaticObjects property.

public ref class HttpStaticObjectsCollectionBase abstract : System::Collections::ICollection
public abstract class HttpStaticObjectsCollectionBase : System.Collections.ICollection
type HttpStaticObjectsCollectionBase = class
    interface ICollection
    interface IEnumerable
Public MustInherit Class HttpStaticObjectsCollectionBase
Implements ICollection
繼承
HttpStaticObjectsCollectionBase
衍生
實作

備註

HttpStaticObjectsCollectionBase類別是抽象類別,其包含與類別相同的成員 HttpStaticObjectsCollectionThe HttpStaticObjectsCollectionBase class is an abstract class that contains the same members as the HttpStaticObjectsCollection class. HttpStaticObjectsCollectionBase類別可讓您建立類似類別的衍生類別 HttpStaticObjectsCollection ,但您可以自訂,也可以在 ASP.NET 管線之外進行自訂作業。The HttpStaticObjectsCollectionBase class lets you create derived classes that are like the HttpStaticObjectsCollection class, but that you can customize and that work outside the ASP.NET pipeline. 當您執行單元測試時,您通常會使用衍生類別來執行自訂行為的成員,以滿足您正在測試的案例。When you perform unit testing, you typically use a derived class to implement members with customized behavior that fulfills the scenario you are testing.

HttpStaticObjectsCollectionWrapper 類別衍生自 HttpStaticObjectsCollectionBase 類別。The HttpStaticObjectsCollectionWrapper class derives from the HttpStaticObjectsCollectionBase class. 類別可做為類別的包裝函式 HttpStaticObjectsCollectionWrapper HttpStaticObjectsCollectionThe HttpStaticObjectsCollectionWrapper class serves as a wrapper for the HttpStaticObjectsCollection class. 在執行時間,您通常會使用類別的實例 HttpStaticObjectsCollectionWrapper 來呼叫物件的成員 HttpStaticObjectsCollectionAt run time, you typically use an instance of the HttpStaticObjectsCollectionWrapper class to call members of the HttpStaticObjectsCollection object.

建構函式

HttpStaticObjectsCollectionBase()

初始化這個類別,以供繼承的類別執行個體使用。Initializes the class for use by an inherited class instance. 這個建構函式只能由繼承的類別呼叫。This constructor can only be called by an inherited class.

屬性

Count

在衍生類別中覆寫時,取得集合中的物件數。When overridden in a derived class, gets the number of objects in the collection.

IsReadOnly

在衍生類別中被覆寫時,取得指出集合是否唯讀的值。When overridden in a derived class, gets a value that indicates whether the collection is read-only.

IsSynchronized

在衍生類別中覆寫時取得值,這個值表示集合是否具備執行緒安全。When overridden in a derived class, gets a value that indicates whether the collection is thread-safe.

Item[String]

在衍生類別中覆寫時,從集合中取得具有指定名稱的物件。When overridden in a derived class, gets the object that has the specified name from the collection.

NeverAccessed

在衍生類別中覆寫時,取得指出是否存取過集合的值。When overridden in a derived class, gets a value that indicates whether the collection has been accessed.

SyncRoot

在衍生類別中覆寫時,取得可用來同步存取集合的物件。When overridden in a derived class, gets an object that can be used to synchronize access to the collection.

方法

CopyTo(Array, Int32)

在衍生類別中覆寫時,從陣列中指定的索引處開始,將集合的項目複製到陣列。When overridden in a derived class, copies the elements of the collection to an array, starting at the specified index in the array.

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

在衍生類別中覆寫時,傳回可用來逐一查看集合的列舉程式。When overridden in a derived class, returns an enumerator that can be used to iterate through the collection.

GetHashCode()

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

(繼承來源 Object)
GetObject(String)

在衍生類別中覆寫時,從集合中傳回具有指定名稱的物件。When overridden in a derived class, returns the object that has the specified name from the collection.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
Serialize(BinaryWriter)

在衍生類別中覆寫時,將該集合的內容寫入 BinaryWriter 物件。When overridden in a derived class, 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.

適用於