ApplicationTrustCollection.Item[] 属性

定义

从集合中获取 ApplicationTrust 对象。

重载

Item[Int32]

获取集合中位于指定索引处的 ApplicationTrust 对象。

Item[String]

获取指定应用程序的 ApplicationTrust 对象。

Item[Int32]

获取集合中位于指定索引处的 ApplicationTrust 对象。

public:
 property System::Security::Policy::ApplicationTrust ^ default[int] { System::Security::Policy::ApplicationTrust ^ get(int index); };
public System.Security.Policy.ApplicationTrust this[int index] { get; }
public System.Security.Policy.ApplicationTrust this[int index] { [System.Security.SecurityCritical] get; }
member this.Item(int) : System.Security.Policy.ApplicationTrust
[<get: System.Security.SecurityCritical>]
member this.Item(int) : System.Security.Policy.ApplicationTrust
Default Public ReadOnly Property Item(index As Integer) As ApplicationTrust

参数

index
Int32

对象在集合中的从零开始的索引。

属性值

ApplicationTrust

集合中指定索引处的 ApplicationTrust 对象。

属性

例外

index 大于或等于集合中的对象数。

index 为负数。

注解

使用此方法从ApplicationTrustCollection指定索引处获取ApplicationTrust对象。

适用于

Item[String]

获取指定应用程序的 ApplicationTrust 对象。

public:
 property System::Security::Policy::ApplicationTrust ^ default[System::String ^] { System::Security::Policy::ApplicationTrust ^ get(System::String ^ appFullName); };
public System.Security.Policy.ApplicationTrust this[string appFullName] { get; }
public System.Security.Policy.ApplicationTrust this[string appFullName] { [System.Security.SecurityCritical] get; }
member this.Item(string) : System.Security.Policy.ApplicationTrust
[<get: System.Security.SecurityCritical>]
member this.Item(string) : System.Security.Policy.ApplicationTrust
Default Public ReadOnly Property Item(appFullName As String) As ApplicationTrust

参数

appFullName
String

应用程序的全名。

属性值

ApplicationTrust

指定应用程序的 ApplicationTrust,如果无法找到该对象则为 null

属性

注解

检查 ApplicationIdentity 集合中每个 ApplicationTrust 对象的属性是否 FullName 与参数指定的应用程序匹配的 appFullName 属性值。

适用于