Compartilhar via


ExtensionMethods.Like Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Verifies if the current string is like the passed in expression.

Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim value As String
Dim expression As String
Dim returnValue As Boolean

returnValue = ExtensionMethods.Like(value, expression)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Like ( _
    value As String, _
    expression As String _
) As Boolean
[ExtensionAttribute] 
public static bool Like (
    string value,
    string expression
)
[ExtensionAttribute] 
public:
static bool Like (
    String^ value, 
    String^ expression
)
/** @attribute ExtensionAttribute() */ 
public static boolean Like (
    String value, 
    String expression
)
ExtensionAttribute 
public static function Like (
    value : String, 
    expression : String
) : boolean

Parameters

  • value
    The string value to compare.
  • expression
    The expression to which the value is compared.

Return Value

true if the current string is like the passed expression; otherwise, false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ExtensionMethods Class
ExtensionMethods Members
Microsoft.EnterpriseManagement Namespace