CryptoConfig.AddAlgorithm(Type, String[]) Método

Definição

Adiciona um conjunto de nomes aos mapeamentos de algoritmo a ser usado para o domínio do aplicativo atual.

public:
 static void AddAlgorithm(Type ^ algorithm, ... cli::array <System::String ^> ^ names);
public static void AddAlgorithm (Type algorithm, params string[] names);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static void AddAlgorithm (Type algorithm, params string[] names);
[System.Security.SecurityCritical]
public static void AddAlgorithm (Type algorithm, params string[] names);
static member AddAlgorithm : Type * string[] -> unit
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member AddAlgorithm : Type * string[] -> unit
[<System.Security.SecurityCritical>]
static member AddAlgorithm : Type * string[] -> unit
Public Shared Sub AddAlgorithm (algorithm As Type, ParamArray names As String())

Parâmetros

algorithm
Type

O algoritmo para o qual o mapeamento será feito.

names
String[]

Uma matriz de nomes para mapear para o algoritmo.

Atributos

Exceções

O parâmetro algorithm ou names é null.

algorithm não pode ser acessado de fora do assembly.

- ou - Uma das entradas no names parâmetro está vazia ou é null.

Comentários

Os mapeamentos especificados têm precedência sobre os mapeamentos internos e os mapeamentos no arquivo machine.config. Os mapeamentos são usados para impedir que o código de confiança parcial use operações de criptografia confiáveis.

Aplica-se a