Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EntityScheme

OfficeIMO.Entities

Namespace
OfficeIMO.Entities
Assembly
OfficeIMO.Core
Source revision
273d35d5ba8a with working tree changes
Modifiers
abstract

Defines how to validate and present one family of entity values.

Inheritance

  • object
  • EntityScheme

Usage

Explore 29 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Methods

public virtual EntityDetails? Decode(string normalized) #

Returns the attributes encoded in a valid value, when supported.

Parameters

normalized string required
public virtual string Format(string normalized, EntityFormatStyle style = Display) #

Formats a canonical value for the requested use.

Parameters

normalized string required
style OfficeIMO.Entities.EntityFormatStyle = Display optional

Returns

string
public bool IsValid(string? value) #

Checks whether a value passes local validation.

Parameters

value string? required

Returns

bool
public virtual string MaskPartial(string normalized) #

Masks a canonical value, preserving only the scheme's permitted display fragments.

Parameters

normalized string required

Returns

string
public string? Normalize(string? value) #

Returns the canonical value or null if validation fails.

Parameters

value string? required

Returns

string?
public bool TryNormalize(string? value, out string normalized) #

Returns the canonical value on successful validation.

Parameters

value string? required
normalized string required

Returns

bool
public abstract EntityValidationResult Validate(string? value) #

Checks written or normalized input without throwing for a malformed value.

Parameters

value string? required

Properties

public abstract string Id { get; } #

Stable catalog identifier.

public abstract EntityKind Kind { get; } #

Category used for filtering and masking.

public abstract string DisplayName { get; } #

Human-readable scheme name.

public virtual string? Country { get; } #

ISO 3166-1 alpha-2 country, or null for an international scheme.

public virtual string? Issuer { get; } #

Organization responsible for issuing or standardizing these values.

public virtual Uri? Specification { get; } #

Documentation for the implemented format or check.

public virtual int MinLength { get; } #

Minimum normalized length in UTF-16 code units.

public virtual int MaxLength { get; } #

Maximum normalized length in UTF-16 code units.

public virtual EntityCheckKind Check { get; } #

Check digit algorithm, if defined.

public virtual IReadOnlyList<EntityCheckInfo> Checks { get; } #

Checks available for the supported formats and variants.

public virtual EntitySensitivity Sensitivity { get; } #

Default masking classification.

public virtual IReadOnlyList<string> Contains { get; } #

Scheme identifiers that can appear inside this scheme's match.