แก้ไข

แชร์ผ่าน


ECDiffieHellman.ExportParameters(Boolean) Method

Definition

When overridden in a derived class, exports either the public or the public and private key information from a working ECDiffieHellman key to an ECParameters structure so that it can be passed to the ImportParameters(ECParameters) method.

public:
 virtual System::Security::Cryptography::ECParameters ExportParameters(bool includePrivateParameters);
public virtual System.Security.Cryptography.ECParameters ExportParameters (bool includePrivateParameters);
abstract member ExportParameters : bool -> System.Security.Cryptography.ECParameters
override this.ExportParameters : bool -> System.Security.Cryptography.ECParameters
Public Overridable Function ExportParameters (includePrivateParameters As Boolean) As ECParameters

Parameters

includePrivateParameters
Boolean

true to include private parameters; otherwise, false to include public parameters only.

Returns

An object that represents the point on the curve for this key. It can be passed to the ImportParameters(ECParameters) method.

Exceptions

A derived class must override this method.

Remarks

If the curve has a name, the Curve property contains named curve parameters; otherwise, it will contain explicit parameters.

Applies to