PeerCredential.SetCertificate Method (String, StoreLocation, StoreName)

 

Sets the certificate.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public void SetCertificate(
	string subjectName,
	StoreLocation storeLocation,
	StoreName storeName
)

Parameters

subjectName
Type: System.String

The subject name of the certificate.

storeLocation
Type: System.Security.Cryptography.X509Certificates.StoreLocation

The location of the certificate store.

storeName
Type: System.Security.Cryptography.X509Certificates.StoreName

The certificate store name.

This overload is used to specify a certificate credential of the peer. It is provided as a shortcut to load the certificate from one of the available certificate stores that the user has access to.

.NET Framework
Available since 3.0
Return to top
Show: