ApplicationTrustCollection 类

定义

表示 ApplicationTrust 对象集合。Represents a collection of ApplicationTrust objects. 此类不能被继承。This class cannot be inherited.

public ref class ApplicationTrustCollection sealed : System::Collections::ICollection
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public sealed class ApplicationTrustCollection : System.Collections.ICollection
type ApplicationTrustCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ApplicationTrustCollection
Implements ICollection
继承
ApplicationTrustCollection
属性
实现

注解

ApplicationTrust对象封装有关应用程序的安全决策。ApplicationTrust objects encapsulate security decisions about an application.

属性

Count

获取集合中包含的项数。Gets the number of items contained in the collection.

IsSynchronized

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

Item[Int32]

获取集合中位于指定索引处的 ApplicationTrust 对象。Gets the ApplicationTrust object located at the specified index in the collection.

Item[String]

获取指定应用程序的 ApplicationTrust 对象。Gets the ApplicationTrust object for the specified application.

SyncRoot

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

方法

Add(ApplicationTrust)

将一个元素添加到集合中。Adds an element to the collection.

AddRange(ApplicationTrust[])

将指定的 ApplicationTrust 数组的元素复制到集合末尾。Copies the elements of the specified ApplicationTrust array to the end of the collection.

AddRange(ApplicationTrustCollection)

将指定的 ApplicationTrustCollection 的元素复制到集合末尾。Copies the elements of the specified ApplicationTrustCollection to the end of the collection.

Clear()

从集合中移除所有应用程序信任。Removes all the application trusts from the collection.

CopyTo(ApplicationTrust[], Int32)

从目标数组的指定索引处开始,将整个集合复制到兼容的一维数组。Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

Equals(Object)

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

(继承自 Object)
Find(ApplicationIdentity, ApplicationVersionMatch)

获取集合中与指定应用程序标识匹配的应用程序信任。Gets the application trusts in the collection that match the specified application identity.

GetEnumerator()

返回一个可用于循环访问该集合的对象。Returns an object that can be used to iterate over the collection.

GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
Remove(ApplicationIdentity, ApplicationVersionMatch)

从集合中移除与指定条件匹配的所有应用程序信任对象。Removes all application trust objects that match the specified criteria from the collection.

Remove(ApplicationTrust)

从集合中移除指定的应用程序信任。Removes the specified application trust from the collection.

RemoveRange(ApplicationTrust[])

从集合中移除指定数组中的应用程序信任对象。Removes the application trust objects in the specified array from the collection.

RemoveRange(ApplicationTrustCollection)

从集合中移除指定集合中的应用程序信任对象。Removes the application trust objects in the specified collection from the 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 the specified Array, starting at the specified Array index.

IEnumerable.GetEnumerator()

返回一个循环访问集合的枚举器。Returns an enumerator that iterates through the collection.

扩展方法

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.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于