HttpStaticObjectsCollectionBase Class
TOC
Collapse the table of content
Expand the table of content

HttpStaticObjectsCollectionBase Class

 

Serves as the base class for classes that provide a collection of application-scoped objects for the StaticObjects property.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.HttpStaticObjectsCollectionBase
    System.Web.HttpStaticObjectsCollectionWrapper

public abstract class HttpStaticObjectsCollectionBase : ICollection, 
	IEnumerable

NameDescription
System_CAPS_protmethodHttpStaticObjectsCollectionBase()

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

NameDescription
System_CAPS_pubpropertyCount

When overridden in a derived class, gets the number of objects in the collection.

System_CAPS_pubpropertyIsReadOnly

When overridden in a derived class, gets a value that indicates whether the collection is read-only.

System_CAPS_pubpropertyIsSynchronized

When overridden in a derived class, gets a value that indicates whether the collection is thread-safe.

System_CAPS_pubpropertyItem[String]

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

System_CAPS_pubpropertyNeverAccessed

When overridden in a derived class, gets a value that indicates whether the collection has been accessed.

System_CAPS_pubpropertySyncRoot

When overridden in a derived class, gets an object that can be used to synchronize access to the collection.

NameDescription
System_CAPS_pubmethodCopyTo(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.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

When overridden in a derived class, returns an enumerator that can be used to iterate through the collection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetObject(String)

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

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSerialize(BinaryWriter)

When overridden in a derived class, writes the contents of the collection to a BinaryWriter object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

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.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft