ApplicationTrustCollection 类
定义
表示 ApplicationTrust 对象集合。Represents a collection of ApplicationTrust objects. 此类不能被继承。This class cannot be inherited.
public ref class ApplicationTrustCollection sealed : System::Collections::ICollection
public sealed class ApplicationTrustCollection : System.Collections.ICollection
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ApplicationTrustCollection : 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
[<System.Runtime.InteropServices.ComVisible(true)>]
type ApplicationTrustCollection = class
interface ICollection
interface IEnumerable
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
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() |
获取当前实例的 Type。Gets 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() |
返回表示当前对象的字符串。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 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |