14.7 OracleString構造
OracleString構造は、データベースに格納されるか、またはデータベースから取得される文字の可変長ストリームを表します。
                  
クラスの継承
System.Object 
                  
  System.ValueType 
                  
    Oracle.DataAccess.Types.OracleString 
                  
宣言
// C# public struct OracleString : IComparable, INullable, IXmlSerializable
要件
| プロバイダ | ODP.NET管理対象外ドライバ | ODP.NET管理対象ドライバ | 
|---|---|---|
| 
                               アセンブリ  | 
                           
                               
  | 
                           
                               
  | 
                        
| 
                               ネームスペース  | 
                           
                               
  | 
                           
                               
  | 
                        
| 
                               .NET Framework  | 
                           
                               3.5, 4.5, 4.6, 4.7  | 
                           
                               4.5, 4.6, 4.7  | 
                        
スレッド安全性
パブリック静的メソッドはスレッドセーフですが、インスタンス・メソッドではスレッド安全性は保証されません。
例
// C#
 
using System;
using Oracle.DataAccess.Types;
 
class OracleStringSample
{
  static void Main()
  {
    // Initialize OracleString structs
    OracleString string1 = new OracleString("AAA");
    
    // Display the string "AAA"
    Console.WriteLine("{0} has length of {1}", string1, string1.Length);
 
    // Contatenate characters to string1 until the length is 5 
    while (string1.Length < 5)
      string1 = OracleString.Concat(string1,"a");
      
    // Display the string of "AAAaa"
    Console.WriteLine("{0} has length of {1}", string1, string1.Length);
  }
}