SchemaNameCollection 类

定义

包含可以由 SchemaFilter 对象的 DirectoryEntries 属性使用的架构名列表。Contains a list of the schema names that the SchemaFilter property of a DirectoryEntries object can use.

public ref class SchemaNameCollection : System::Collections::IList
public class SchemaNameCollection : System.Collections.IList
type SchemaNameCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public Class SchemaNameCollection
Implements IList
继承
SchemaNameCollection
实现

属性

Count

Count 属性获取此集合中对象的数目。The Count property gets the number of objects in this collection.

Item[Int32]

获取或设置存在于指定索引处的对象。Gets or sets the object that exists at a specified index.

方法

Add(String)

向此集合追加指定的架构名。Appends a specified schema name to this collection.

AddRange(SchemaNameCollection)

将一组指定的架构名追加到此集合中。Appends a set of specified schema names to this collection.

AddRange(String[])

将一组指定的架构名追加到此集合中。Appends a set of specified schema names to this collection.

Clear()

从该集合中移除所有对象。Removes all objects from this collection.

Contains(String)

确定此集合是否包含指定的架构名。Determines whether this collection contains a specified schema name.

CopyTo(String[], Int32)

将架构名从此集合复制到一个数组中,并从该数组的某个特定索引处开始复制。Copies the schema names from this collection to an array, starting at a particular index of the array.

Equals(Object)

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

(继承自 Object)
GetEnumerator()

返回可用于循环访问此集合的枚举数。Returns an enumerator that you can use to iterate through this collection.

GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
IndexOf(String)

确定此集合中指定架构名的索引。Determines the index of a specified schema name in this collection.

Insert(Int32, String)

将架构名插入到此集合的指定索引处。Inserts a schema name into this collection at a specified index.

MemberwiseClone()

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

(继承自 Object)
Remove(String)

从该集合中移除指定的架构名。Removes a specified schema name from this collection.

RemoveAt(Int32)

从该集合中移除指定索引处的架构名。Removes the schema name that is at a specified index from this collection.

ToString()

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

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

ICollection.IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

ICollection.SyncRoot

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

IList.Add(Object)

将某项添加到列表中。Adds an item to the list.

IList.Contains(Object)

确定列表是否包含指定值。Determines whether the list contains a specified value.

IList.IndexOf(Object)

确定列表中指定项的索引。Determines the index of a specified item in the list.

IList.Insert(Int32, Object)

将某项插入列表中指定的索引处。Inserts an item to the list at the specified index.

IList.IsFixedSize

获取一个值,该值指示 IList 是否具有固定大小。Gets a value indicating whether the IList has a fixed size.

IList.IsReadOnly

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

IList.Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

IList.Remove(Object)

从列表中移除特定 value 的第一个匹配项。Removes the first occurrence of a specific value from the list.

扩展方法

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.

适用于

另请参阅