Binding.CertificateStoreName Property

IIS 7.0
 

Gets or sets the name of the certificate store.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string CertificateStoreName { get; set; }

Property Value

Type: System.String

The name of the certificate store.

The CertificateStoreName property value contains the name of the certificate store where the certificate for the binding is located.

The CertificateStoreName property is available only when the protocol identifier defined by the Protocol property is "https". An attempt to get or set the CertificateStoreName property for a binding with a protocol of "http" will raise an error.

The value of the CertificateStoreName property is set in the BindingCollection object.

The following example demonstrates the CertificateStoreName property. If the protocol is "https", the certificate hash and certificate store name are displayed. This code example is part of a larger example provided for the Binding class.

Return to top
Show: