Export (0) Print
Expand All
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.

  NameDescription
Public methodHttpStaticObjectsCollectionWrapperInitializes a new instance of the HttpStaticObjectsCollectionWrapper class.
Top
  NameDescription
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.)
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.)
Top
  NameDescription
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 the default hash function. (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.)
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.5.1, 4.5, 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft. All rights reserved.