Click or drag to resize

TranslatableContentExtenderValidate Method

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

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


Type: MFiles.VAF.ConfigurationTranslatableContent
The this parameter.
Type: MFiles.VAF.ConfigurationValidationResultBase
The validation result object that contains all validation results.
Type: MFiles.VAF.ConfigurationIConfiguration
The configuration object. Used in reporting/logging the validation errors.
Type: SystemString
The item type text. Used in the error messages.
Type: SystemString
The item text. Used in the error messages.
allowEmptyTranslations (Optional)
Type: SystemBoolean
If true the validation allows empty values as translated text.

Return Value

Type: 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