PeerCredential.SetCertificate Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee stelt u het certificaat in.
Overloads
| Name | Description |
|---|---|
| SetCertificate(String, StoreLocation, StoreName) |
Hiermee stelt u het certificaat in. |
| SetCertificate(StoreLocation, StoreName, X509FindType, Object) |
Hiermee stelt u het certificaat in met de opgegeven zoekcriteria. |
SetCertificate(String, StoreLocation, StoreName)
Hiermee stelt u het certificaat in.
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)
Parameters
- subjectName
- String
De onderwerpnaam van het certificaat.
- storeLocation
- StoreLocation
De locatie van het certificaatarchief.
- storeName
- StoreName
De naam van het certificaatarchief.
Opmerkingen
Deze overbelasting wordt gebruikt om een certificaatreferentie van de peer op te geven. Het wordt geleverd als een snelkoppeling om het certificaat te laden vanuit een van de beschikbare certificaatarchieven waartoe de gebruiker toegang heeft.
Van toepassing op
SetCertificate(StoreLocation, StoreName, X509FindType, Object)
Hiermee stelt u het certificaat in met de opgegeven zoekcriteria.
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)
Parameters
- storeLocation
- StoreLocation
De locatie van het certificaatarchief.
- storeName
- StoreName
De naam van het certificaatarchief.
- findType
- X509FindType
De zoekcriteria.
- findValue
- Object
De waarde waarop moet worden gezocht.