HttpStaticObjectsCollectionWrapper 类

定义

封装为 StaticObjects 属性提供应用程序范围的对象的集合的 HTTP 内部对象。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
继承
HttpStaticObjectsCollectionWrapper

注解

类派生自类, 用作HttpStaticObjectsCollection类的包装。 HttpStaticObjectsCollectionBase HttpStaticObjectsCollectionWrapperThe HttpStaticObjectsCollectionWrapper class derives from the HttpStaticObjectsCollectionBase class and serves as a wrapper for the HttpStaticObjectsCollection class. 此类公开HttpStaticObjectsCollection类的功能, 同时HttpStaticObjectsCollectionBase公开类型。This class exposes the functionality of the HttpStaticObjectsCollection class while also exposing the HttpStaticObjectsCollectionBase type. 通过类, 可以将应用程序中HttpStaticObjectsCollection类的原始实现替换为自定义实现, 例如在 ASP.NET 管道之外执行单元测试时。 HttpStaticObjectsCollectionBaseThe 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.

构造函数

HttpStaticObjectsCollectionWrapper(HttpStaticObjectsCollection)

初始化 HttpStaticObjectsCollectionWrapper 类的新实例。Initializes a new instance of the HttpStaticObjectsCollectionWrapper class.

属性

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.

方法

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.

(继承自 Object)
GetEnumerator()

返回一个可用于循环访问集合的枚举数。Returns an enumerator that can be used to iterate through the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetObject(String)

返回集合中具有指定名称的对象。Returns the object that has the specified name from the collection.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Serialize(BinaryWriter)

将集合的内容写入 BinaryWriter 对象。Writes the contents of the collection to a BinaryWriter object.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于