Click or drag to resize

EdiMessageIsValid Method

Validates a message according to its validation attributes.

Namespace:  EdiFabric.Core.Model.Edi
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.2.0
Syntax
public bool IsValid(
	out MessageErrorContext result,
	bool skipTrailer = false
)

Parameters

result
Type: EdiFabric.Core.Model.Edi.ErrorContextsMessageErrorContext
The resulting message context.
skipTrailer (Optional)
Type: SystemBoolean
Whether to validate the trailer. Skip when validating custom created messages.

Return Value

Type: Boolean
Whether the message is valid or not. If not valid then the message error context will contain the reasons.
See Also