AuthorizationRuleCollection AuthorizationRuleCollection AuthorizationRuleCollection AuthorizationRuleCollection Class

定义

表示 AuthorizationRule 对象集合。Represents a collection of AuthorizationRule objects.

public ref class AuthorizationRuleCollection sealed : System::Collections::ReadOnlyCollectionBase
public sealed class AuthorizationRuleCollection : System.Collections.ReadOnlyCollectionBase
type AuthorizationRuleCollection = class
    inherit ReadOnlyCollectionBase
Public NotInheritable Class AuthorizationRuleCollection
Inherits ReadOnlyCollectionBase
继承
AuthorizationRuleCollectionAuthorizationRuleCollectionAuthorizationRuleCollectionAuthorizationRuleCollection

构造函数

AuthorizationRuleCollection() AuthorizationRuleCollection() AuthorizationRuleCollection() AuthorizationRuleCollection()

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

属性

Count Count Count Count
InnerList InnerList InnerList InnerList

获取 ReadOnlyCollectionBase 实例中包含的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取集合中指定索引位置的 AuthorizationRule 对象。Gets the AuthorizationRule object at the specified index of the collection.

方法

AddRule(AuthorizationRule) AddRule(AuthorizationRule) AddRule(AuthorizationRule) AddRule(AuthorizationRule)

将一个 AuthorizationRule 对象添加到集合中。Adds an AuthorizationRule object to the collection.

CopyTo(AuthorizationRule[], Int32) CopyTo(AuthorizationRule[], Int32) CopyTo(AuthorizationRule[], Int32) CopyTo(AuthorizationRule[], Int32)

将该集合的内容复制到数组。Copies the contents of the collection to an array.

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

返回循环访问 ReadOnlyCollectionBase 实例的枚举器。Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
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)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

扩展方法

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.

适用于