共用方式為


SecurityBindingElement.SetKeyDerivation(Boolean) 方法

定義

設定值,指出是否需要衍生金鑰。

public:
 virtual void SetKeyDerivation(bool requireDerivedKeys);
public virtual void SetKeyDerivation (bool requireDerivedKeys);
abstract member SetKeyDerivation : bool -> unit
override this.SetKeyDerivation : bool -> unit
Public Overridable Sub SetKeyDerivation (requireDerivedKeys As Boolean)

參數

requireDerivedKeys
Boolean

如果需要衍生金鑰,則為 true,否則為 false

範例

下列程式碼將示範如何呼叫這個方法。

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

// Use a secure session.
security = SecurityBindingElement.CreateSecureConversationBindingElement(security, true);

// Specify whether derived keys are required.
security.SetKeyDerivation(true);

適用於