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
Syntaxpublic static bool Like(
this MultilanguageString str,
string pattern
)
<ExtensionAttribute>
Public Shared Function Like (
str As MultilanguageString,
pattern As String
) As Boolean
public:
[ExtensionAttribute]
static bool Like(
MultilanguageString^ str,
String^ pattern
)
[<ExtensionAttribute>]
static member Like :
str : MultilanguageString *
pattern : string -> bool
Parameters
- str
- Type: Aloe.EnterpriseOne.ModelMultilanguageString
The string to check. - pattern
- Type: SystemString
The pattern to be matched.
Return Value
Type:
BooleanUsage 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