PeerCredential.SetCertificate メソッド

定義

証明書を設定します。

オーバーロード

SetCertificate(String, StoreLocation, StoreName)

証明書を設定します。

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

指定された検索条件を使用して証明書を設定します。

SetCertificate(String, StoreLocation, StoreName)

証明書を設定します。

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)

パラメーター

subjectName
String

証明書のサブジェクト名。

storeLocation
StoreLocation

証明書ストアの場所。

storeName
StoreName

証明書ストアの名前。

注釈

このオーバーロードは、ピアの証明書資格情報を指定するために使用されます。 これは、ユーザーがアクセスできる使用可能ないずれかの証明書ストアから証明書を読み込むためのショートカットとして用意されています。

適用対象

SetCertificate(StoreLocation, StoreName, X509FindType, Object)

指定された検索条件を使用して証明書を設定します。

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)

パラメーター

storeLocation
StoreLocation

証明書ストアの場所。

storeName
StoreName

証明書ストアの名前。

findType
X509FindType

検索条件。

findValue
Object

検索する場所の値。

適用対象