PeerCredential.SetCertificate Methode

Definition

Legt das Zertifikat fest.

Überlädt

Name Beschreibung
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

Der Name des Zertifikatspeichers.

Hinweise

Diese Überladung wird verwendet, um eine Zertifikatanmeldeinformationen des Peers anzugeben. Es wird als Verknüpfung zum Laden des Zertifikats aus einem der verfügbaren Zertifikatspeicher bereitgestellt, auf die der Benutzer Zugriff hat.

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

Der Name des Zertifikatspeichers.

findType
X509FindType

Die Suchkriterien.

findValue
Object

Der wert, nach dem gesucht werden soll.

Gilt für: