편집

다음을 통해 공유


X509CertificateInitiatorServiceCredential.Certificate Property

Definition

Gets or sets the certificate to use in MutualCertificateDuplex message security authentication mode.

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Certificate { System::Security::Cryptography::X509Certificates::X509Certificate2 ^ get(); void set(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate { get; set; }
member this.Certificate : System.Security.Cryptography.X509Certificates.X509Certificate2 with get, set
Public Property Certificate As X509Certificate2

Property Value

The X509Certificate2 to use to encrypt messages sent to the client by the service in the uncorrelated duplex transport case if the MutualCertificateDuplex message security authentication mode is used.

Exceptions

An attempt was made to set a read-only credential.

Examples

The following code shows how to use this property to get the certificate.

Remarks

This property is used for bindings that are configured to message security mode when MutualCertificateDuplex message security authentication mode is used.

Applies to