System::String::CompareTo メソッド

String::CompareTo method

’less-equals-more’スタイルで2つの文字列を比較します。現在のカルチャを使用します。

int System::String::CompareTo(const String &str) const
パラメーター説明
strconst String&この文字列を String と比較します。

ReturnValue

この文字列が str より小さいとみなされる場合は負の値、等しい場合は 0、より大きい場合は正の値を返します。

参照