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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 3.0
Return to top
Show: