Class Mbox
- Namespace
- Xapi
- Assembly
- Xapi.Core.dll
An mbox identifier: a mailto: IRI such as mailto:learner@example.com.
public sealed record Mbox : InverseFunctionalIdentifier, IEquatable<InverseFunctionalIdentifier>, IEquatable<Mbox>
- Inheritance
-
Mbox
- Implements
- Inherited Members
Remarks
The format is checked by StatementValidator, not by the constructor.
Constructors
Mbox(string)
Creates an mbox identifier.
public Mbox(string value)
Parameters
valuestringThe
mailto:IRI, used as given.
Properties
Value
The mailto: IRI.
public string Value { get; init; }
Property Value
Methods
FromEmail(string)
Creates an identifier from an e-mail address, adding mailto: when it is missing.
public static Mbox FromEmail(string email)
Parameters
emailstringAn e-mail address or
mailto:IRI.
Returns
- Mbox
The identifier.