Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetCertificate Method (StoreLocation, StoreName, X509FindType, Object)

PeerCredential.SetCertificate Method (StoreLocation, StoreName, X509FindType, Object)

Sets the certificate with the specified search criteria.

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

public void SetCertificate(
	StoreLocation storeLocation,
	StoreName storeName,
	X509FindType findType,
	Object findValue
)

Parameters

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

The location of the certificate store.

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

The certificate store name.

findType
Type: System.Security.Cryptography.X509Certificates.X509FindType

The search criteria.

findValue
Type: System.Object

The value to search on.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft