PlaceholderValidatorValidatePlaceholder Method (TranslatableContent, String, Boolean, Boolean) |
Validates a string as a single placeholder.
Namespace:
MFiles.VAF.Placeholders
Assembly:
MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntaxpublic bool ValidatePlaceholder(
TranslatableContent placeholderStr,
string itemName,
bool required = true,
bool canBeEmpty = true
)
Public Function ValidatePlaceholder (
placeholderStr As TranslatableContent,
itemName As String,
Optional required As Boolean = true,
Optional canBeEmpty As Boolean = true
) As Boolean
public:
bool ValidatePlaceholder(
TranslatableContent^ placeholderStr,
String^ itemName,
bool required = true,
bool canBeEmpty = true
)
Parameters
- placeholderStr
- Type: MFiles.VAF.ConfigurationTranslatableContent
The placeholder 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:
BooleanThe placeholder's validity.
See Also