PeerCredential.SetCertificate Método

Definición

Establece el certificado.

Sobrecargas

Nombre Description
SetCertificate(String, StoreLocation, StoreName)

Establece el certificado.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Establece el certificado con los criterios de búsqueda especificados.

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 usa para especificar una credencial de certificado del mismo nivel. Se proporciona como acceso directo para cargar el certificado desde 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 los criterios de búsqueda 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

Ubicación del almacén de certificados.

storeName
StoreName

Nombre del almacén de certificados.

findType
X509FindType

Criterios de búsqueda.

findValue
Object

Valor en el que se va a buscar.

Se aplica a