PeerCredential.SetCertificate Método

Definición

Establece el certificado.

Sobrecargas

SetCertificate(String, StoreLocation, StoreName)

Establece el certificado.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Establece el certificado con el criterio de búsqueda concreto.

SetCertificate(String, StoreLocation, StoreName)

Establece el 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

El nombre del sujeto del certificado.

storeLocation
StoreLocation

Ubicación del almacén de certificados.

storeName
StoreName

Nombre del almacén de certificados.

Comentarios

Esta sobrecarga se utiliza para especificar una credencial del certificado del par. Se proporciona como un acceso directo para cargar el certificado de uno de los almacenes de certificados disponibles a los que el usuario tiene acceso.

Se aplica a

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Establece el certificado con el criterio de búsqueda concreto.

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

Ubicación del almacén de certificados.

storeName
StoreName

Nombre del almacén de certificados.

findType
X509FindType

Los criterios de búsqueda.

findValue
Object

Valor en el que se va a buscar.

Se aplica a