Table of Contents

Method TryCreate

Namespace
MailFathom.Domain.Access
Assembly
MailFathom.Domain.dll

TryCreate(string?, out UserCredentialLookup)

Reads a stored value back into a lookup, whichever method wrote it.

public static bool TryCreate(string? stored, out UserCredentialLookup lookup)

Parameters

stored string

The value as the row holds it.

lookup UserCredentialLookup

The lookup when the stored value is usable; otherwise the unspecified default.

Returns

bool

true when the stored value is one this type can hold.

Remarks

The one entry point that accepts a value composed elsewhere, which is what a row read back out of the table it was written into needs; every other factory states which method it is composing for.