CryptoConfig.AddAlgorithm(Type, String[]) 메서드

정의

현재 애플리케이션 도메인에 사용할 알고리즘 매핑에 이름 집합을 추가합니다.

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())

매개 변수

algorithm
Type

매핑할 알고리즘입니다.

names
String[]

알고리즘에 매핑할 이름 배열입니다.

특성

예외

algorithm 또는 names 매개 변수가 null인 경우

algorithm은 어셈블리 외부에서 액세스할 수 없습니다.

또는 names 매개 변수의 항목 중 하나가 비어 있거나 null인 경우

설명

지정된 매핑은 기본 제공 매핑 및 machine.config 파일의 매핑보다 우선합니다. 매핑은 부분적으로 신뢰할 수 있는 코드가 신뢰할 수 있는 암호화 작업을 사용하지 못하도록 방지하는 데 사용됩니다.

적용 대상