Επεξεργασία

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


HttpStaticObjectsCollectionWrapper Class

Definition

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

public ref class HttpStaticObjectsCollectionWrapper : System::Web::HttpStaticObjectsCollectionBase
public class HttpStaticObjectsCollectionWrapper : System.Web.HttpStaticObjectsCollectionBase
type HttpStaticObjectsCollectionWrapper = class
    inherit HttpStaticObjectsCollectionBase
Public Class HttpStaticObjectsCollectionWrapper
Inherits HttpStaticObjectsCollectionBase
Inheritance
HttpStaticObjectsCollectionWrapper

Remarks

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.

Constructors

HttpStaticObjectsCollectionWrapper(HttpStaticObjectsCollection)

Initializes a new instance of the HttpStaticObjectsCollectionWrapper class.

Properties

Count

Gets the number of objects in the collection.

IsReadOnly

Gets a value that indicates whether the collection is read-only.

IsSynchronized

Gets a value that indicates whether the collection is thread-safe.

Item[String]

Gets the object that has the specified name from the collection.

NeverAccessed

Gets a value that indicates whether the collection has been accessed.

SyncRoot

Gets an object that can be used to synchronize access to the collection.

Methods

CopyTo(Array, Int32)

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()

Returns an enumerator that can be used to iterate through the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetObject(String)

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)

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