HttpMethods.Equals(String, String) Method

Definition

Returns a value that indicates if the HTTP methods are the same.

public:
 static bool Equals(System::String ^ methodA, System::String ^ methodB);
public static bool Equals (string methodA, string methodB);
static member Equals : string * string -> bool
Public Shared Function Equals (methodA As String, methodB As String) As Boolean

Parameters

methodA
String

The first HTTP request method to compare.

methodB
String

The second HTTP request method to compare.

Returns

true if the methods are the same; otherwise, false.

Applies to