Click or drag to resize

MultilanguageStringExtensionsLike Method

Compares a string against pattern.

Namespace:  Aloe.EnterpriseOne.Model
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static bool Like(
	this MultilanguageString str,
	string pattern
)

Parameters

str
Type: Aloe.EnterpriseOne.ModelMultilanguageString
The string to check.
pattern
Type: SystemString
The pattern to be matched.

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MultilanguageString. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

If the value in str satisfies the pattern contained in pattern, result is True. If the string does not satisfy the pattern, result is False. If both string and pattern are empty strings, the result is True.

All language strings are checked for match and if any match is found, the result is True.

Patterns are strings, but can contain also the wild-card character '%', which matches zero or more characters.

See Also