PeerCredential.SetCertificate Metod

Definition

Anger certifikatet.

Överlagringar

Name Description
SetCertificate(String, StoreLocation, StoreName)

Anger certifikatet.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Anger certifikatet med det angivna sökvillkoren.

SetCertificate(String, StoreLocation, StoreName)

Anger certifikatet.

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)

Parametrar

subjectName
String

Certifikatets ämnesnamn.

storeLocation
StoreLocation

Platsen för certifikatarkivet.

storeName
StoreName

Certifikatarkivets namn.

Kommentarer

Den här överlagringen används för att ange en certifikatautentiseringsuppgift för peer-filen. Det tillhandahålls som en genväg för att läsa in certifikatet från ett av de tillgängliga certifikatarkiv som användaren har åtkomst till.

Gäller för

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Anger certifikatet med det angivna sökvillkoren.

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)

Parametrar

storeLocation
StoreLocation

Platsen för certifikatarkivet.

storeName
StoreName

Certifikatarkivets namn.

findType
X509FindType

Sökvillkoren.

findValue
Object

Värdet som ska sökas efter.

Gäller för