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.1.0.1 (2.1.0.1)
Syntax
C#
public static bool Validate(
	this TranslatableContent content,
	ValidationResultBase validationResult,
	IConfiguration configuration,
	string itemType,
	string item,
	bool allowEmptyTranslations = false
)

Parameters

content
Type: MFiles.VAF.ConfigurationTranslatableContent
The this parameter.
validationResult
Type: MFiles.VAF.ConfigurationValidationResultBase
The validation result object that contains all validation results.
configuration
Type: MFiles.VAF.ConfigurationIConfiguration
The configuration object. Used in reporting/logging the validation errors.
itemType
Type: SystemString
The item type text. Used in the error messages.
item
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