Freigeben über


PeerCredential.SetCertificate Methode

Definition

Legt das Zertifikat fest.

Überlädt

SetCertificate(String, StoreLocation, StoreName)

Legt das Zertifikat fest.

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Legt das Zertifikat mit den angegebenen Suchkriterien fest.

SetCertificate(String, StoreLocation, StoreName)

Legt das Zertifikat fest.

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)

Parameter

subjectName
String

Der Betreffname des Zertifikats.

storeLocation
StoreLocation

Der Speicherort des Zertifikatspeichers.

storeName
StoreName

Zertifikatsspeichername.

Hinweise

Diese Überladung wird zur Angabe von Zertifikatanmeldeinformationen des Peers verwendet. Sie wird als Verknüpfung zum Laden des Zertifikats aus einem der verfügbaren Zertifikatsspeicher, auf die der Benutzer Zugriff hat, bereitgestellt.

Gilt für

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

Legt das Zertifikat mit den angegebenen Suchkriterien fest.

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)

Parameter

storeLocation
StoreLocation

Der Speicherort des Zertifikatspeichers.

storeName
StoreName

Zertifikatsspeichername.

findType
X509FindType

Die Suchkriterien.

findValue
Object

Der zu suchende Wert.

Gilt für