Click or drag to resize

PlaceholderValidatorValidatePlaceholder Method (String, String, Boolean, Boolean, ExpansionContextType, Int32)

Validates a string as a single placeholder.

Namespace:  MFiles.VAF.Placeholders
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
public bool ValidatePlaceholder(
	string placeholderStr,
	string itemName,
	bool required = true,
	bool canBeEmpty = true,
	ExpansionContextType[] validTypes = null,
	int[] validValueLists = null


Type: SystemString
The placeholder text.
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.
validTypes (Optional)
Type: MFiles.VAF.PlaceholdersExpansionContextType
Valid expansion types for the placeholder to output.
validValueLists (Optional)
Type: SystemInt32
Valid value list types to output if the context output is lookup or object.

Return Value

Type: Boolean
The placeholder's validity.
See Also