ApplicationTrustCollection.AddRange Método
Definição
Copia um intervalo de objetos ApplicationTrust para o final da coleção.Copies a range of ApplicationTrust objects to the end of the collection.
Sobrecargas
| AddRange(ApplicationTrust[]) |
Copia os elementos da matriz ApplicationTrust especificada para o fim da coleção.Copies the elements of the specified ApplicationTrust array to the end of the collection. |
| AddRange(ApplicationTrustCollection) |
Copia os elementos da ApplicationTrustCollection especificada para o fim da coleção.Copies the elements of the specified ApplicationTrustCollection to the end of the collection. |
AddRange(ApplicationTrust[])
Copia os elementos da matriz ApplicationTrust especificada para o fim da coleção.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())
Parâmetros
- trusts
- ApplicationTrust[]
A matriz do tipo ApplicationTrust que contém os objetos a serem adicionados à coleção.An array of type ApplicationTrust containing the objects to add to the collection.
- Atributos
Exceções
trusts é null.trusts is null.
A propriedade ApplicationIdentity de um ApplicationTrust especificado no trust é null.The ApplicationIdentity property of an ApplicationTrust specified in trust is null.
Comentários
Os ApplicationTrust objetos contidos na trusts matriz são anexados ao final da coleção.The ApplicationTrust objects contained in the trusts array are appended to the end of the collection.
Para remover um intervalo de confianças de aplicativo que você adicionou anteriormente, use o RemoveRange método.To remove a range of application trusts that you previously added, use the RemoveRange method.
Aplica-se a
AddRange(ApplicationTrustCollection)
Copia os elementos da ApplicationTrustCollection especificada para o fim da coleção.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)
Parâmetros
- trusts
- ApplicationTrustCollection
Um ApplicationTrustCollection que contém os objetos a serem adicionados à coleção.A ApplicationTrustCollection containing the objects to add to the collection.
- Atributos
Exceções
trusts é null.trusts is null.
A propriedade ApplicationIdentity de um ApplicationTrust especificado no trust é null.The ApplicationIdentity property of an ApplicationTrust specified in trust is null.
Comentários
Os ApplicationTrust objetos contidos em trusts são acrescentados ao final da coleção.The ApplicationTrust objects contained in trusts are appended to the end of the collection.
Você pode usar o AddRange método para adicionar rapidamente outra coleção de objetos de confiança do aplicativo à coleção, em vez de adicionar manualmente cada relação de confiança de aplicativo à coleção usando o Add método.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.
Para remover um intervalo de confianças de aplicativo que você adicionou anteriormente, use o RemoveRange método.To remove a range of application trusts that you previously added, use the RemoveRange method.