ExtensionMethods.Matches 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 matches with 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.Matches(value, expression)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Matches ( _
value As String, _
expression As String _
) As Boolean
[ExtensionAttribute]
public static bool Matches (
string value,
string expression
)
[ExtensionAttribute]
public:
static bool Matches (
String^ value,
String^ expression
)
/** @attribute ExtensionAttribute() */
public static boolean Matches (
String value,
String expression
)
ExtensionAttribute
public static function Matches (
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 matches with 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