Compartilhar via


ExtensionMethods.Equals 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 equal to the passed expression using case-insensitive comparison.

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.Equals(value, expression)

Syntax

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