Method FromText
- Namespace
- MailFathom.Infrastructure.Secrets.Resolution
- Assembly
- MailFathom.Infrastructure.dll
FromText(string)
Encodes text material as UTF-8 into an owned pinned buffer.
public static ResolvedSecret FromText(string material)
Parameters
materialstringThe material.
Returns
- ResolvedSecret
The owned secret.
Remarks
The source string itself cannot be erased, so this overload is reachable only where the platform already handed the value over as a string.
Exceptions
- ArgumentNullException
Thrown when
materialis null.