System.Security.Policy.ApplicationTrustCollection.AddRange Method

Copies the elements of the specified System.Security.Policy.ApplicationTrustCollection to the end of the collection.

Syntax

public void AddRange (ApplicationTrustCollection trusts)

Parameters

trusts
A System.Security.Policy.ApplicationTrustCollection containing the objects to add to the collection.

Remarks

The System.Security.Policy.ApplicationTrust objects contained in trusts are appended to the end of the collection.

You can use the ApplicationTrustCollection.AddRange(ApplicationTrustCollection) method to quickly add another collection of application trust objects to the collection instead of manually adding each application trust to the collection using the ApplicationTrustCollection.Add(ApplicationTrust) method.

To remove a range of application trusts that you previously added, use the erload:System.Security.Policy.ApplicationTrustCollection.RemoveRange method.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0