TranslatableContentExtenderValidate Method

Method for validating the TranslatedContent collection values. Reports findings directly into the validation result object.

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public static bool Validate(
	this TranslatableContent content,
	ValidationResultBase validationResult,
	IConfiguration configuration,
	string itemType,
	string item,
	bool allowEmptyTranslations = false
)

Parameters

content  TranslatableContent
The this parameter.
validationResult  ValidationResultBase
The validation result object that contains all validation results.
configuration  IConfiguration
The configuration object. Used in reporting/logging the validation errors.
itemType  String
The item type text. Used in the error messages.
item  String
The item text. Used in the error messages.
allowEmptyTranslations  Boolean  (Optional)
If true the validation allows empty values as translated text.

Return Value

Boolean
True if everything was ok.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TranslatableContent. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also