System::String::CompareOrdinal طريقة

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

Less-equal-greater-يقارن سلسلتين باستخدام وضع ترتيبي.

static int System::String::CompareOrdinal(const String &strA, const String &strB)
معاملنوعالوصف
strAconst String&السلسلة الأولى للمقارنة.
strBconst String&السلسلة الثانية للمقارنة.

ReturnValue

قيمة سالبة إذا كان الجزء الفرعي الأول أصغر من الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا

String::CompareOrdinal(const String&, int, const String&, int, int) method

Less-equal-greater-يقارن سلسلتين باستخدام وضع ترتيبي.

static int System::String::CompareOrdinal(const String &strA, int indexA, const String &strB, int indexB, int length)
معاملنوعالوصف
strAconst String&السلسلة الأولى للمقارنة.
indexAintبداية الجزء الفرعي الأول من السلسلة.
strBconst String&السلسلة الثانية للمقارنة.
indexBintبداية الجزء الفرعي الثاني من السلسلة.
الطولintعدد الأحرف للمقارنة.

ReturnValue

قيمة سالبة إذا كان الجزء الفرعي الأول أصغر من الثاني، صفر إذا كانا متطابقين، قيمة موجبة خلاف ذلك.

انظر أيضًا