PeerCredential.SetCertificate Método

Definição

Define o certificado.

Sobrecargas

Name Description
SetCertificate(String, StoreLocation, StoreName)

Define o certificado.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Define o certificado com os critérios de pesquisa especificados.

SetCertificate(String, StoreLocation, StoreName)

Define o certificado.

public:
 void SetCertificate(System::String ^ subjectName, System::Security::Cryptography::X509Certificates::StoreLocation storeLocation, System::Security::Cryptography::X509Certificates::StoreName storeName);
public void SetCertificate(string subjectName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName);
member this.SetCertificate : string * System.Security.Cryptography.X509Certificates.StoreLocation * System.Security.Cryptography.X509Certificates.StoreName -> unit
Public Sub SetCertificate (subjectName As String, storeLocation As StoreLocation, storeName As StoreName)

Parâmetros

subjectName
String

O nome do assunto do certificado.

storeLocation
StoreLocation

A localização do depósito de certificados.

storeName
StoreName

O nome da loja de certificados.

Observações

Esta sobrecarga é usada para especificar uma credencial de certificado do par. É fornecido como um atalho para carregar o certificado a partir de uma das lojas de certificados disponíveis a que o utilizador tem acesso.

Aplica-se a

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Define o certificado com os critérios de pesquisa especificados.

public:
 void SetCertificate(System::Security::Cryptography::X509Certificates::StoreLocation storeLocation, System::Security::Cryptography::X509Certificates::StoreName storeName, System::Security::Cryptography::X509Certificates::X509FindType findType, System::Object ^ findValue);
public void SetCertificate(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, object findValue);
member this.SetCertificate : System.Security.Cryptography.X509Certificates.StoreLocation * System.Security.Cryptography.X509Certificates.StoreName * System.Security.Cryptography.X509Certificates.X509FindType * obj -> unit
Public Sub SetCertificate (storeLocation As StoreLocation, storeName As StoreName, findType As X509FindType, findValue As Object)

Parâmetros

storeLocation
StoreLocation

A localização do depósito de certificados.

storeName
StoreName

O nome da loja de certificados.

findType
X509FindType

Os critérios de pesquisa.

findValue
Object

O valor para pesquisar.

Aplica-se a