AsymmetricKeyExchangeFormatter.SetKey(AsymmetricAlgorithm) Método
Definição
Quando substituído em uma classe derivada, define a chave pública a ser usada para criptografar as informações de segredo.When overridden in a derived class, sets the public key to use for encrypting the secret information.
public:
abstract void SetKey(System::Security::Cryptography::AsymmetricAlgorithm ^ key);
public abstract void SetKey (System.Security.Cryptography.AsymmetricAlgorithm key);
abstract member SetKey : System.Security.Cryptography.AsymmetricAlgorithm -> unit
Public MustOverride Sub SetKey (key As AsymmetricAlgorithm)
Parâmetros
A instância da implementação de AsymmetricAlgorithm que contém a chave pública.The instance of the implementation of AsymmetricAlgorithm that holds the public key.
Comentários
Você deve definir uma chave antes de chamar uma CreateKeyExchange implementação.You must set a key before calling a CreateKeyExchange implementation.