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.1.0.1 (2.1.0.1)
Syntax
C#
public bool ValidatePlaceholder(
	string placeholderStr,
	string itemName,
	bool required = true,
	bool canBeEmpty = true,
	ExpansionContextType[] validTypes = null,
	int[] validValueLists = null
)

Parameters

placeholderStr
Type: SystemString
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.
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