Επεξεργασία

Κοινή χρήση μέσω


HttpStaticObjectsCollectionBase Class

Definition

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
Inheritance
HttpStaticObjectsCollectionBase
Derived
Implements

Remarks

The HttpStaticObjectsCollectionBase class is an abstract class that contains the same members as the HttpStaticObjectsCollection class. 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.

The HttpStaticObjectsCollectionWrapper class derives from the HttpStaticObjectsCollectionBase class. The HttpStaticObjectsCollectionWrapper class serves as a wrapper for the HttpStaticObjectsCollection class. At run time, you typically use an instance of the HttpStaticObjectsCollectionWrapper class to call members of the HttpStaticObjectsCollection object.

Constructors

HttpStaticObjectsCollectionBase()

Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class.

Properties

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.

Methods

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.

(Inherited from 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.

(Inherited from Object)
GetObject(String)

When overridden in a derived class, returns the object that has the specified name from the collection.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Serialize(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.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to