ClientCredentialsSecurityTokenManager(ClientCredentials) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe ClientCredentialsSecurityTokenManager.
public:
ClientCredentialsSecurityTokenManager(System::ServiceModel::Description::ClientCredentials ^ clientCredentials);
public ClientCredentialsSecurityTokenManager (System.ServiceModel.Description.ClientCredentials clientCredentials);
new System.ServiceModel.ClientCredentialsSecurityTokenManager : System.ServiceModel.Description.ClientCredentials -> System.ServiceModel.ClientCredentialsSecurityTokenManager
Public Sub New (clientCredentials As ClientCredentials)
Paramètres
- clientCredentials
- ClientCredentials
L’ClientCredentialsopérateur
Exceptions
clientCredentials
a la valeur null
.
Exemples
L'exemple de code suivant montre comment substituer ce constructeur.
protected MyClientCredentials(MyClientCredentials other)
: base(other)
{
this.clientEncryptingCert = other.clientEncryptingCert;
this.clientSigningCert = other.clientSigningCert;
this.serviceEncryptingCert = other.serviceEncryptingCert;
this.serviceSigningCert = other.serviceSigningCert;
}
Protected Sub New(ByVal other As MyClientCredentials)
MyBase.New(other)
Me.clientEncryptingCert = other.clientEncryptingCert
Me.clientSigningCert = other.clientSigningCert
Me.serviceEncryptingCert = other.serviceEncryptingCert
Me.serviceSigningCert = other.serviceSigningCert
End Sub