ExportToStream Method
Writes the key to a stream.
Syntax
public void ExportToStream(int keyType, System.IO.Stream stream, string password);
Public Sub ExportToStream(ByVal KeyType As Integer, ByVal Stream As System.IO.Stream, ByVal Password As String)
Remarks
Use this method to save Key in the stream specified by Stream. KeyType specifies the format in which the key should be stored, and Password specifies a password to decrypt the private key.
Allowed key types:
cktPrivate | 0 | A private key |
cktPublic | 1 | A public key |