CompositeMLDsa.ExportCompositeMLDsaPrivateKey Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| ExportCompositeMLDsaPrivateKey() | Exports the private-key portion of the current key. | 
| ExportCompositeMLDsaPrivateKey(Span<Byte>) | Exports the private-key portion of the current key into the provided buffer. | 
ExportCompositeMLDsaPrivateKey()
- Source:
- CompositeMLDsa.cs
Exports the private-key portion of the current key.
public:
 cli::array <System::Byte> ^ ExportCompositeMLDsaPrivateKey();public byte[] ExportCompositeMLDsaPrivateKey();member this.ExportCompositeMLDsaPrivateKey : unit -> byte[]Public Function ExportCompositeMLDsaPrivateKey () As Byte()Returns
The Composite ML-DSA private key.
Exceptions
The current instance cannot export a private key.
-or-
An error occurred while exporting the key.
The object has already been disposed.
Applies to
ExportCompositeMLDsaPrivateKey(Span<Byte>)
- Source:
- CompositeMLDsa.cs
Exports the private-key portion of the current key into the provided buffer.
public:
 int ExportCompositeMLDsaPrivateKey(Span<System::Byte> destination);public int ExportCompositeMLDsaPrivateKey(Span<byte> destination);member this.ExportCompositeMLDsaPrivateKey : Span<byte> -> intPublic Function ExportCompositeMLDsaPrivateKey (destination As Span(Of Byte)) As IntegerParameters
Returns
The number of bytes written to the destination buffer.
Exceptions
This instance has been disposed.
  destination wasn't large enough to hold the result.
-or-
An error occurred while exporting the key.