HttpStaticObjectsCollection HttpStaticObjectsCollection HttpStaticObjectsCollection HttpStaticObjectsCollection Class

定义

StaticObjects 属性提供应用程序范围内的对象的集合。Provides a collection of application-scoped objects for the StaticObjects property.

public ref class HttpStaticObjectsCollection sealed : System::Collections::ICollection
public sealed class HttpStaticObjectsCollection : System.Collections.ICollection
type HttpStaticObjectsCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class HttpStaticObjectsCollection
Implements ICollection
继承
HttpStaticObjectsCollectionHttpStaticObjectsCollectionHttpStaticObjectsCollectionHttpStaticObjectsCollection
实现

构造函数

HttpStaticObjectsCollection() HttpStaticObjectsCollection() HttpStaticObjectsCollection() HttpStaticObjectsCollection()

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

属性

Count Count Count Count

获取集合中的对象数。Gets the number of objects in the collection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示集合是否为只读。Gets a value indicating whether the collection is read-only.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值指示集合是否已同步(即线程安全)。Gets a value indicating whether the collection is synchronized (that is, thread-safe).

Item[String] Item[String] Item[String] Item[String]

获取集合中具有指定名称的对象。Gets the object with the specified name from the collection.

NeverAccessed NeverAccessed NeverAccessed NeverAccessed

获取一个指示集合以前是否被访问过的布尔值。Gets a Boolean value indicating whether the collection has been accessed before.

SyncRoot SyncRoot SyncRoot SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

方法

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

HttpStaticObjectsCollection 的成员复制到数组。Copies members of an HttpStaticObjectsCollection into an array.

Deserialize(BinaryReader) Deserialize(BinaryReader) Deserialize(BinaryReader) Deserialize(BinaryReader)

从使用 HttpStaticObjectsCollection 方法编写的二进制文件创建 Serialize(BinaryWriter) 对象。Creates an HttpStaticObjectsCollection object from a binary file that was written by using the Serialize(BinaryWriter) method.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回字典枚举数,该枚举数用于循环访问包含在集合中的“键-值”对。Returns a dictionary enumerator used for iterating through the key-and-value pairs contained in the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetObject(String) GetObject(String) GetObject(String) GetObject(String)

返回集合中具有指定名称的对象。Returns the object with the specified name from the collection. 该属性是 this 访问器的另一选择。This property is an alternative to the this accessor.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Serialize(BinaryWriter) Serialize(BinaryWriter) Serialize(BinaryWriter) Serialize(BinaryWriter)

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

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于