Click or drag to resize
TMMatchContextTypesLengthInformation Field

Indicates that length restrictions apply to the content.

This context type is also used for validation purposes.

Namespace: Sdl.FileTypeSupport.Framework.Core.Utilities.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.Utilities (in Sdl.FileTypeSupport.Framework.Core.Utilities.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public const string LengthInformation = "x-tm-length-info"

Field Value

Type: String
Remarks

The context metadata should contain the type of length information (e.g. chars, bytes) and the maximum and (optionally) minimum lengths as follows:

  • The metadata key MetaDataTypes.LengthType indicates the type of unit that the length limit is measured in. Normally, it is set to one of the values in LengthTypes.
  • The maximum length (if applicable) is set as the value of the metadata key MetaDataTypes.MaxValue.
  • The minimum length (if applicable) is set as the value of the metadata key MetaDataTypes.MinValue.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments