ClientCredentialsSecurityTokenManager(ClientCredentials) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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)
參數
- clientCredentials
- ClientCredentials
例外狀況
clientCredentials
為 null
。
範例
下列程式碼示範如何覆寫這個建構函式 (Constructor)。
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