Click or drag to resize

RequiredAttributeValidate Method

Detects if an item is mandatory and exists.

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.2.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