ApplicationTrustCollection.Clear 方法
定义
从集合中移除所有应用程序信任。Removes all the application trusts from the collection.
public:
void Clear();
public void Clear ();
[System.Security.SecurityCritical]
public void Clear ();
member this.Clear : unit -> unit
[<System.Security.SecurityCritical>]
member this.Clear : unit -> unit
Public Sub Clear ()
- 属性
例外
集合中某一项的 ApplicationIdentity 属性为 null。The ApplicationIdentity property of an item in the collection is null.
注解
ApplicationTrust集合中的每个都由其 ApplicationIdentity 属性标识。Each ApplicationTrust in the collection is identified by its ApplicationIdentity property. 如果 ApplicationIdentity 集合中任何对象的属性值 ApplicationTrust 为 null ,则 ArgumentException 将引发。If the value of the ApplicationIdentity property for any ApplicationTrust object in the collection is null, an ArgumentException is thrown.