ApplicationTrustCollection.Add(ApplicationTrust) Método

Definição

Adiciona um elemento à coleção.Adds an element to the collection.

public:
 int Add(System::Security::Policy::ApplicationTrust ^ trust);
public int Add (System.Security.Policy.ApplicationTrust trust);
[System.Security.SecurityCritical]
public int Add (System.Security.Policy.ApplicationTrust trust);
member this.Add : System.Security.Policy.ApplicationTrust -> int
[<System.Security.SecurityCritical>]
member this.Add : System.Security.Policy.ApplicationTrust -> int
Public Function Add (trust As ApplicationTrust) As Integer

Parâmetros

trust
ApplicationTrust

O objeto ApplicationTrust a ser adicionado.The ApplicationTrust object to add.

Retornos

Int32

O índice no qual o novo elemento foi inserido.The index at which the new element was inserted.

Atributos

Exceções

trust é null.trust is null.

A propriedade ApplicationIdentity do ApplicationTrust especificado no trust é null.The ApplicationIdentity property of the ApplicationTrust specified in trust is null.

Comentários

O ApplicationTrust objeto é adicionado ao final da coleção.The ApplicationTrust object is added to the end of the collection. Para remover uma relação de confiança de aplicativo que você adicionou anteriormente, use o Remove método.To remove an application trust that you previously added, use the Remove method.

Aplica-se a