Binding.CertificateStoreName Propriété

Définition

Obtient ou définit le nom du magasin de certificats.

public:
 property System::String ^ CertificateStoreName { System::String ^ get(); void set(System::String ^ value); };
public string CertificateStoreName { get; set; }
member this.CertificateStoreName : string with get, set
Public Property CertificateStoreName As String

Valeur de propriété

Nom du magasin de certificats.

Exemples

L’exemple suivant illustre la CertificateStoreName propriété . Si le protocole est « https », le hachage du certificat et le nom du magasin de certificats s’affichent. Cet exemple de code fait partie d’un exemple plus grand fourni pour la Binding classe .

if (binding.Protocol == "https")
{
     // There is a CertificateHash and  
     // CertificateStoreName for the https protocol only.
    bindingdisplay = bindingdisplay + "\n   CertificateHash: " + 
        binding.CertificateHash + ": ";
    // Display the hash.
    foreach (System.Byte certhashbyte in binding.CertificateHash)
    {
        bindingdisplay = bindingdisplay + certhashbyte.ToString() + " ";
    }
    bindingdisplay = bindingdisplay + "\n   CertificateStoreName: " + 
        binding.CertificateStoreName;
}

Remarques

La CertificateStoreName valeur de la propriété contient le nom du magasin de certificats où se trouve le certificat de la liaison.

La CertificateStoreName propriété est disponible uniquement lorsque l’identificateur de protocole défini par la Protocol propriété est « https ». Une tentative d’obtention ou de définition de la CertificateStoreName propriété d’une liaison avec un protocole « http » génère une erreur.

La valeur de la CertificateStoreName propriété est définie dans l’objet BindingCollection .

S’applique à