Click or drag to resize
StringLengthAttributeValidate Method
Detects if the length of a data element is correct.

Namespace: EdiFabric.Core.Annotations.Validation
Assembly: EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (1.1.1.0)
Syntax
public override List<SegmentErrorContext> Validate(
	InstanceContext instanceContext,
	int segmentIndex,
	int inSegmentIndex,
	int inCompositeIndex,
	int repetitionIndex
)

Parameters

instanceContext
Type: EdiFabric.Core.Model.EdiInstanceContext
The instance context.
segmentIndex
Type: SystemInt32
The segment position.
inSegmentIndex
Type: SystemInt32
The position within the segment.
inCompositeIndex
Type: SystemInt32
The position within the component if any.
repetitionIndex
Type: SystemInt32
The repetition position.

Return Value

Type: ListSegmentErrorContext
A list of segment errors if invalid, otherwise nothing.

Implements

IValidatorValidate(InstanceContext, Int32, Int32, Int32, Int32)
See Also