Class EmailMapping
Email mapping
Inherited Members
ValidatableRecordBase.ObjectValidatable(IObjectValidatable)
ValidatableRecordBase.ToString()
ValidatableRecordBase.GetHashCode()
ValidatableRecordBase.Equals(ValidatableRecordBase)
ValidatableRecordBase.<Clone>$()
ValidatableRecordBase.EqualityContract
Namespace: wan24.AutoDiscover.Models
Assembly: wan24AutoDiscoverShared.dll
Syntax
public record EmailMapping : ValidatableRecordBase, IObjectValidatable, IValidatableObject, IEquatable<ValidatableRecordBase>, IEquatable<EmailMapping>
Remarks
Constructor
Constructors
| Edit this page View SourceEmailMapping()
Email mapping
Declaration
public EmailMapping()
Remarks
Constructor
Properties
| Edit this page View SourceEmail address
Declaration
[EmailAddress]
public required string Email { get; init; }
Property Value
Type | Description |
---|---|
string |
Targets
Target email addresses or user names
Declaration
[CountLimit(1, 2147483647)]
[ItemStringLength(255, ItemValidationTargets.Item)]
public required IReadOnlyList<string> Targets { get; init; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Methods
| Edit this page View SourceGetLoginUser(IEnumerable<EmailMapping>, string)
Get the login user from email mappings for an email address
Declaration
public static string? GetLoginUser(IEnumerable<EmailMapping> mappings, string email)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EmailMapping> | mappings | Mappings |
string | Email address |
Returns
Type | Description |
---|---|
string | Login user |
Implements
wan24.ObjectValidation.IObjectValidatable