StringComparer.InvariantCultureIgnoreCase StringComparer.InvariantCultureIgnoreCase StringComparer.InvariantCultureIgnoreCase StringComparer.InvariantCultureIgnoreCase Property

定義

取得 StringComparer 物件,該物件會使用不變文化特性的字組比較規則,執行不區分大小寫字串的比較。Gets a StringComparer object that performs a case-insensitive string comparison using the word comparison rules of the invariant culture.

public:
 static property StringComparer ^ InvariantCultureIgnoreCase { StringComparer ^ get(); };
public static StringComparer InvariantCultureIgnoreCase { get; }
member this.InvariantCultureIgnoreCase : StringComparer
Public Shared ReadOnly Property InvariantCultureIgnoreCase As StringComparer

屬性值

備註

StringComparer所傳回InvariantCultureIgnoreCase屬性會忽略大小寫,以語言相關方式比較字串,但不適合顯示在任何特定的文化特性。The StringComparer returned by the InvariantCultureIgnoreCase property compares strings in a linguistically relevant manner that ignores case, but it is not suitable for display in any particular culture. 其主要的應用程式是順序的字串將會是跨文化特性相同的方式。Its major application is to order strings in a way that will be identical across cultures.

而異的文化特性CultureInfo所傳回的物件InvariantCulture屬性。The invariant culture is the CultureInfo object returned by the InvariantCulture property.

InvariantCultureIgnoreCase屬性實際上會傳回衍生自匿名類別的執行個體StringComparer類別。The InvariantCultureIgnoreCase property actually returns an instance of an anonymous class derived from the StringComparer class.

適用於

另請參閱