ApplicationTrustCollection.Item[] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从集合中获取对象 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集合中指定索引处的对象。
- 属性
例外
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指定应用程序的对象,或者null找不到该对象。
- 属性
注解
检查ApplicationIdentity集合FullName中每个ApplicationTrust对象的属性是否与参数指定的应用程序匹配的appFullName属性值。