ApplicationTrustCollection.AddRange Method

Definition

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

Overloads

AddRange(ApplicationTrust[])

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

AddRange(ApplicationTrustCollection)

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

AddRange(ApplicationTrust[])

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

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

public:
 void AddRange(cli::array <System::Security::Policy::ApplicationTrust ^> ^ trusts);
public void AddRange (System.Security.Policy.ApplicationTrust[] trusts);
[System.Security.SecurityCritical]
public void AddRange (System.Security.Policy.ApplicationTrust[] trusts);
member this.AddRange : System.Security.Policy.ApplicationTrust[] -> unit
[<System.Security.SecurityCritical>]
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.

Attributes

Exceptions

trusts is null.

The ApplicationIdentity property of an ApplicationTrust specified in trust is null.

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.

Applies to

AddRange(ApplicationTrustCollection)

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

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

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

Parameters

trusts
ApplicationTrustCollection

A ApplicationTrustCollection containing the objects to add to the collection.

Attributes

Exceptions

trusts is null.

The ApplicationIdentity property of an ApplicationTrust specified in trust is null.

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