PlaceholderValidatorValidatePlaceholderTemplate(TranslatableContent, String, Boolean, Boolean) Method

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

Definition

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

Parameters

templateStr  TranslatableContent
The translatable placeholder template text.
itemName  String
The name of the item being validated.
required  Boolean  (Optional)
Indicates whether an issue with this item is fatal (for the module.)
canBeEmpty  Boolean  (Optional)
Indicates whether the item can be empty.

Return Value

Boolean
The placeholder's validity boolean.

See Also