Share via


PeerCredential.SetCertificate Metodo

Definizione

Imposta il certificato.

Overload

SetCertificate(String, StoreLocation, StoreName)

Imposta il certificato.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Imposta il certificato con i criteri di ricerca specificati.

SetCertificate(String, StoreLocation, StoreName)

Imposta il certificato.

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)

Parametri

subjectName
String

Nome del soggetto del certificato.

storeLocation
StoreLocation

Percorso dell'archivio certificati.

storeName
StoreName

Nome dell'archivio certificati.

Commenti

Questo overload viene utilizzato per specificare una credenziale del certificato del peer. Viene fornito come collegamento per caricare il certificato da uno degli archivi certificati disponibili a cui ha accesso l'utente.

Si applica a

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Imposta il certificato con i criteri di ricerca specificati.

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)

Parametri

storeLocation
StoreLocation

Percorso dell'archivio certificati.

storeName
StoreName

Nome dell'archivio certificati.

findType
X509FindType

Criteri di ricerca.

findValue
Object

Valore sul quale eseguire la ricerca.

Si applica a