CngKeyCreationParameters.Parameters 속성

정의

키가 완성되기 전에 설정된 추가 속성을 사용하여 CngKey 개체를 만들 수 있습니다.

public:
 property System::Security::Cryptography::CngPropertyCollection ^ Parameters { System::Security::Cryptography::CngPropertyCollection ^ get(); };
public System.Security.Cryptography.CngPropertyCollection Parameters { get; }
member this.Parameters : System.Security.Cryptography.CngPropertyCollection
Public ReadOnly Property Parameters As CngPropertyCollection

속성 값

키를 만드는 도중 CngKey 개체에 대해 설정해야 하는 추가 매개 변수가 들어 있는 컬렉션 개체입니다.

설명

CngKeyCreationParameters 클래스를 사용하면 새 CngKey 개체를 만들고 공통 속성으로 초기화할 수 있습니다. 키를 만드는 동안 키에 대한 추가 속성을 설정해야 하는 경우 다음 단계를 수행합니다.

  1. 설정해야 하는 각 추가 속성에 대해 새 CngProperty 개체를 만듭니다.

  2. Parameters 속성을 호출하여 빈 CngPropertyCollection 개체를 가져옵니다.

  3. 개체를 CngProperty 개체에 CngPropertyCollection 추가합니다.

  4. 메서드 오버로드를 Create(CngAlgorithm, String, CngKeyCreationParameters) 호출하고 초기화된 CngKeyCreationParameters 개체를 전달합니다.

적용 대상