This documentation is archived and is not being maintained.

HttpStaticObjectsCollectionWrapper Class

Encapsulates the HTTP intrinsic object that provides a collection of application-scoped objects for the StaticObjects property.


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

type HttpStaticObjectsCollectionWrapper =  
        inherit HttpStaticObjectsCollectionBase

The HttpStaticObjectsCollectionWrapper type exposes the following members.

Public methodHttpStaticObjectsCollectionWrapperInitializes a new instance of the HttpStaticObjectsCollectionWrapper class.

Public propertyCountGets the number of objects in the collection. (Overrides HttpStaticObjectsCollectionBase.Count.)
Public propertyIsReadOnlyGets a value that indicates whether the collection is read-only. (Overrides HttpStaticObjectsCollectionBase.IsReadOnly.)
Public propertyIsSynchronizedGets a value that indicates whether the collection is thread-safe. (Overrides HttpStaticObjectsCollectionBase.IsSynchronized.)
Public propertyItemGets the object that has the specified name from the collection. (Overrides HttpStaticObjectsCollectionBase.Item(String).)
Public propertyNeverAccessedGets a value that indicates whether the collection has been accessed. (Overrides HttpStaticObjectsCollectionBase.NeverAccessed.)
Public propertySyncRootGets an object that can be used to synchronize access to the collection. (Overrides HttpStaticObjectsCollectionBase.SyncRoot.)

Public methodCopyToCopies the elements of the collection to an array, starting at the specified index in the array. (Overrides HttpStaticObjectsCollectionBase.CopyTo(Array, Int32).)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that can be used to iterate through the collection. (Overrides HttpStaticObjectsCollectionBase.GetEnumerator().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetObjectReturns the object that has the specified name from the collection. (Overrides HttpStaticObjectsCollectionBase.GetObject(String).)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSerializeWrites the contents of the collection to a BinaryWriter object. (Overrides HttpStaticObjectsCollectionBase.Serialize(BinaryWriter).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The HttpStaticObjectsCollectionWrapper class derives from the HttpStaticObjectsCollectionBase class and serves as a wrapper for the HttpStaticObjectsCollection class. This class exposes the functionality of the HttpStaticObjectsCollection class while also exposing the HttpStaticObjectsCollectionBase type. The HttpStaticObjectsCollectionBase class enables you to replace the original implementation of the HttpStaticObjectsCollection class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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