ApplicationTrustCollection.AddRange ApplicationTrustCollection.AddRange ApplicationTrustCollection.AddRange ApplicationTrustCollection.AddRange Method

Definition

Copies a range of ApplicationTrust objects to the end of the collection.

Overloads

AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[])

Copies the elements of the specified ApplicationTrust array to the end of the collection.

AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection)

Copies the elements of the specified ApplicationTrustCollection to the end of the collection.

AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[]) AddRange(ApplicationTrust[])

Copies the elements of the specified ApplicationTrust array to the end of the collection.

public:
 void AddRange(cli::array <System::Security::Policy::ApplicationTrust ^> ^ trusts);
[System.Security.SecurityCritical]
public void AddRange (System.Security.Policy.ApplicationTrust[] trusts);
member this.AddRange : System.Security.Policy.ApplicationTrust[] -> unit
Public Sub AddRange (trusts As ApplicationTrust())

Parameters

trusts
ApplicationTrust[]

An array of type ApplicationTrust containing the objects to add to the collection.

Exceptions

Remarks

The ApplicationTrust objects contained in the trusts array are appended to the end of the collection.

To remove a range of application trusts that you previously added, use the RemoveRange method.

AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection) AddRange(ApplicationTrustCollection)

Copies the elements of the specified ApplicationTrustCollection to the end of the collection.

public:
 void AddRange(System::Security::Policy::ApplicationTrustCollection ^ trusts);
[System.Security.SecurityCritical]
public void AddRange (System.Security.Policy.ApplicationTrustCollection trusts);
member this.AddRange : System.Security.Policy.ApplicationTrustCollection -> unit
Public Sub AddRange (trusts As ApplicationTrustCollection)

Parameters

Exceptions

Remarks

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

You can use the AddRange 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 Add method.

To remove a range of application trusts that you previously added, use the RemoveRange method.

Applies to