This topic has not yet been rated - Rate this topic

HttpStaticObjectsCollectionWrapper Class

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

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

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)
public class HttpStaticObjectsCollectionWrapper : HttpStaticObjectsCollectionBase

The HttpStaticObjectsCollectionWrapper type exposes the following members.

  Name Description
Public method HttpStaticObjectsCollectionWrapper Initializes a new instance of the HttpStaticObjectsCollectionWrapper class.
Top
  Name Description
Public property Count Gets the number of objects in the collection. (Overrides HttpStaticObjectsCollectionBase.Count.)
Public property IsReadOnly Gets a value that indicates whether the collection is read-only. (Overrides HttpStaticObjectsCollectionBase.IsReadOnly.)
Public property IsSynchronized Gets a value that indicates whether the collection is thread-safe. (Overrides HttpStaticObjectsCollectionBase.IsSynchronized.)
Public property Item Gets the object that has the specified name from the collection. (Overrides HttpStaticObjectsCollectionBase.Item[String].)
Public property NeverAccessed Gets a value that indicates whether the collection has been accessed. (Overrides HttpStaticObjectsCollectionBase.NeverAccessed.)
Public property SyncRoot Gets an object that can be used to synchronize access to the collection. (Overrides HttpStaticObjectsCollectionBase.SyncRoot.)
Top
  Name Description
Public method CopyTo Copies the elements of the collection to an array, starting at the specified index in the array. (Overrides HttpStaticObjectsCollectionBase.CopyTo(Array, Int32).)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection. (Overrides HttpStaticObjectsCollectionBase.GetEnumerator().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObject Returns the object that has the specified name from the collection. (Overrides HttpStaticObjectsCollectionBase.GetObject(String).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize Writes the contents of the collection to a BinaryWriter object. (Overrides HttpStaticObjectsCollectionBase.Serialize(BinaryWriter).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ