System::String::Equals μέθοδος

String::Equals(const String&) const method

String equality comparison. Uses System::StringComparison::Ordinal comparison mode.

bool System::String::Equals(const String &str) const
ParameterTypeΠεριγραφή
strconst String&String για σύγκριση με την τρέχουσα.

ReturnValue

αληθές εάν οι συμβολοσειρές ταιριάζουν, ψευδές διαφορετικά.

Δείτε επίσης

String::Equals(const String&, System::StringComparison) const method

String equality comparison. Several modes provided by StringComparison enumeration are supported.

bool System::String::Equals(const String &str, System::StringComparison comparison_type) const
ParameterTypeΠεριγραφή
strconst String&String για σύγκριση με την τρέχουσα.
comparison_typeSystem::StringComparisonComparison λειτουργία (δείτε το System::StringComparison για λεπτομέρειες).

ReturnValue

αληθές εάν οι συμβολοσειρές ταιριάζουν χρησιμοποιώντας τον επιλεγμένο τύπο σύγκρισης, ψευδές διαφορετικά.

Δείτε επίσης

String::Equals(const String&, const String&) method

Equal-συγκρίνει δύο συμβολοσειρές χρησιμοποιώντας τη λειτουργία σύγκρισης Ordial.

static bool System::String::Equals(const String &strA, const String &strB)
ParameterTypeΠεριγραφή
strAconst String&Πρώτη συμβολοσειρά για σύγκριση.
strBconst String&Δεύτερη συμβολοσειρά για σύγκριση.

ReturnValue

αληθές εάν οι συμβολοσειρές ταιριάζουν, ψευδές διαφορετικά.

Δείτε επίσης

String::Equals(const String&, const String&, System::StringComparison) method

Equal-συγκρίνει δύο συμβολοσειρές.

static bool System::String::Equals(const String &strA, const String &strB, System::StringComparison comparison_type)
ParameterTypeΠεριγραφή
strAconst String&Πρώτη συμβολοσειρά για σύγκριση.
strBconst String&Δεύτερη συμβολοσειρά για σύγκριση.
comparison_typeSystem::StringComparisonΛειτουργία Comparison.

ReturnValue

αληθές εάν οι συμβολοσειρές ταιριάζουν, ψευδές διαφορετικά.

Δείτε επίσης