IsCaseIgnored
このプロパティは、文字列比較を実行するときに、大/小文字の区別を無視する必要があるかどうかを示します。
宣言
//C#
public bool IsCaseIgnored {get;set;}プロパティ値
文字列比較で大/小文字の区別を無視する必要がある場合はtrue、それ以外の場合はfalseを戻します。
備考
デフォルト値はtrue
例
// C#
using System;
using Oracle.DataAccess.Types;
class IsCaseIgnoredSample
{
static void Main()
{
OracleString string1 = new OracleString("aAaAa");
OracleString string2 = new OracleString("AaAaA");
// Ignore case for comparisons
string1.IsCaseIgnored = true;
string2.IsCaseIgnored = true;
// Same; Prints 0
Console.WriteLine(string1.CompareTo(string2));
// Make comparisons case sensitive
// Note that IsCaseIgnored must be set to false for both
// OracleStrings; otherwise an exception is thrown
string1.IsCaseIgnored = false;
string2.IsCaseIgnored = false;
// Different; Prints nonzero value
Console.WriteLine(string1.CompareTo(string2));
}
}