Click or drag to resize

PlaceholderValidatorValidatePlaceholderTemplate Method (TranslatableContent, String, Boolean, Boolean)

Validates a string as text that can contain multiple placeholders amongst the static text.

Namespace:  MFiles.VAF.Placeholders
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public bool ValidatePlaceholderTemplate(
	TranslatableContent templateStr,
	string itemName,
	bool required = true,
	bool canBeEmpty = true
)

Parameters

templateStr
Type: MFiles.VAF.ConfigurationTranslatableContent
The translatable placeholder template text.
itemName
Type: SystemString
The name of the item being validated.
required (Optional)
Type: SystemBoolean
Indicates whether an issue with this item is fatal (for the module.)
canBeEmpty (Optional)
Type: SystemBoolean
Indicates whether the item can be empty.

Return Value

Type: Boolean
The placeholder's validity boolean.
See Also