Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EntityValidationResult

OfficeIMO.Entities

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

The local validation result for an entity value.

Inheritance

  • object
  • EntityValidationResult

Usage

Explore 5 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 1

Constructors

public EntityValidationResult(EntityScheme scheme, EntityValidationStatus status, string? normalized = null, EntityCheckOutcome checkDigit = NotDefined, EntityCheckInfo? check = null) #

Creates a validation result. Supply a canonical value for a valid result.

Parameters

scheme OfficeIMO.Entities.EntityScheme required
status OfficeIMO.Entities.EntityValidationStatus required
normalized string? = null optional
checkDigit OfficeIMO.Entities.EntityCheckOutcome = NotDefined optional
check OfficeIMO.Entities.EntityCheckInfo? = null optional

Methods

public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public bool IsValid { get; } #

Whether format and applicable checks passed.

public EntityValidationStatus Status { get; } #

Outcome of validation.

public string? Normalized { get; } #

Canonical value when the format parsed. This property may contain sensitive data.

public EntityScheme Scheme { get; } #

Scheme used to validate the value.

public EntityCheckOutcome CheckDigit { get; } #

Outcome of the checksum, when applied.

public EntityCheckInfo? Check { get; } #

The check applied by the scheme, if any.

public EntityCheckProvenance CheckProvenance { get; } #

Provenance of the checksum applied to this variant.