PeerCredential.SetCertificate Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit le certificat.
Surcharges
| Nom | Description |
|---|---|
| SetCertificate(String, StoreLocation, StoreName) |
Définit le certificat. |
| SetCertificate(StoreLocation, StoreName, X509FindType, Object) |
Définit le certificat avec les critères de recherche spécifiés. |
SetCertificate(String, StoreLocation, StoreName)
Définit le certificat.
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)
Paramètres
- subjectName
- String
Nom du sujet du certificat.
- storeLocation
- StoreLocation
Emplacement du magasin de certificats.
- storeName
- StoreName
Nom du magasin de certificats.
Remarques
Cette surcharge est utilisée pour spécifier des informations d’identification de certificat de l’homologue. Il est fourni en tant que raccourci pour charger le certificat à partir de l’un des magasins de certificats disponibles auxquels l’utilisateur a accès.
S’applique à
SetCertificate(StoreLocation, StoreName, X509FindType, Object)
Définit le certificat avec les critères de recherche spécifiés.
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)
Paramètres
- storeLocation
- StoreLocation
Emplacement du magasin de certificats.
- storeName
- StoreName
Nom du magasin de certificats.
- findType
- X509FindType
Critères de recherche.
- findValue
- Object
Valeur à rechercher.