共用方式為


AsymmetricSecurityBindingElement 建構函式

定義

建立這個類別的執行個體。

多載

AsymmetricSecurityBindingElement()

建立這個類別的執行個體。

AsymmetricSecurityBindingElement(SecurityTokenParameters)

使用指定的收件者權杖參數,初始化 AsymmetricSecurityBindingElement 的新執行個體。

AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)

使用指定的收件者與啟動器權杖參數,初始化 AsymmetricSecurityBindingElement 的新執行個體。

AsymmetricSecurityBindingElement()

建立這個類別的執行個體。

public:
 AsymmetricSecurityBindingElement();
public AsymmetricSecurityBindingElement ();
Public Sub New ()

備註

這個建構函式設定的成員包括:

成員
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters null
RecipientTokenParameters null
AllowSerializedSigningTokenOnReply false

適用於

AsymmetricSecurityBindingElement(SecurityTokenParameters)

使用指定的收件者權杖參數,初始化 AsymmetricSecurityBindingElement 的新執行個體。

public:
 AsymmetricSecurityBindingElement(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ recipientTokenParameters);
public AsymmetricSecurityBindingElement (System.ServiceModel.Security.Tokens.SecurityTokenParameters recipientTokenParameters);
new System.ServiceModel.Channels.AsymmetricSecurityBindingElement : System.ServiceModel.Security.Tokens.SecurityTokenParameters -> System.ServiceModel.Channels.AsymmetricSecurityBindingElement
Public Sub New (recipientTokenParameters As SecurityTokenParameters)

參數

recipientTokenParameters
SecurityTokenParameters

定義收件者的權杖 (例如,伺服器的 X.509 憑證)。

備註

這個建構函式設定的成員包括:

成員
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters null
RecipientTokenParameters recipientTokenParameters
AllowSerializedSigningTokenOnReply false

適用於

AsymmetricSecurityBindingElement(SecurityTokenParameters, SecurityTokenParameters)

使用指定的收件者與啟動器權杖參數,初始化 AsymmetricSecurityBindingElement 的新執行個體。

public:
 AsymmetricSecurityBindingElement(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ recipientTokenParameters, System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ initiatorTokenParameters);
public AsymmetricSecurityBindingElement (System.ServiceModel.Security.Tokens.SecurityTokenParameters recipientTokenParameters, System.ServiceModel.Security.Tokens.SecurityTokenParameters initiatorTokenParameters);
new System.ServiceModel.Channels.AsymmetricSecurityBindingElement : System.ServiceModel.Security.Tokens.SecurityTokenParameters * System.ServiceModel.Security.Tokens.SecurityTokenParameters -> System.ServiceModel.Channels.AsymmetricSecurityBindingElement
Public Sub New (recipientTokenParameters As SecurityTokenParameters, initiatorTokenParameters As SecurityTokenParameters)

參數

recipientTokenParameters
SecurityTokenParameters

定義收件者的權杖 (例如,伺服器的 X.509 憑證)。

initiatorTokenParameters
SecurityTokenParameters

定義啟動器的權杖 (例如,用戶端的 X.509 憑證)。

範例

下列程式碼示範一種呼叫這個建構函式的方式。

AsymmetricSecurityBindingElement abe =
    (AsymmetricSecurityBindingElement)SecurityBindingElement.
    CreateMutualCertificateBindingElement(
    MessageSecurityVersion.
    WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)

備註

這個建構函式設定的成員包括:

成員
MessageProtectionOrder SignBeforeEncrypt
RequireSignatureConfirmation false
InitiatorTokenParameters initiatorTokenParameters
RecipientTokenParameters recipientTokenParameters
AllowSerializedSigningTokenOnReply false

適用於