This documentation is archived and is not being maintained.
OracleString Structure
Visual Studio 2010
Represents a variable-length stream of characters to be stored in or retrieved from the database.
Assembly: System.Data.OracleClient (in System.Data.OracleClient.dll)
The OracleString type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | OracleString | Initializes a new instance of the OracleString class and specifies the string to store. |
| Name | Description | |
|---|---|---|
![]() | IsNull | Indicates whether the Value of the OracleString is Null. |
![]() | Item | Gets the single byte from the Value property located at the position indicated by the integer parameter, index. |
![]() | Length | Gets the length of the string that is stored in this OracleString structure. |
![]() | Value | Gets the string that is stored in the OracleString structure. |
| Name | Description | |
|---|---|---|
![]() | CompareTo | Compares this instance of OracleString to the supplied object and returns an indication of their relative values. |
![]() ![]() | Concat | Concatenates the two specified OracleString structures. |
![]() | Equals(Object) | Compares the supplied object parameter to the Value property of the OracleString object. (Overrides ValueType::Equals(Object).) |
![]() ![]() | Equals(OracleString, OracleString) | Performs a logical comparison of the two OracleString operands to determine if they are equal. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Gets the hash code for this instance. (Overrides ValueType::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | GreaterThan | Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second. |
![]() ![]() | GreaterThanOrEqual | Performs a logical comparison of the two OracleString operands to determine if the first is greater than or equal to the second. |
![]() ![]() | LessThan | Performs a logical comparison of the two OracleString operands to determine if the first is less than the second. |
![]() ![]() | LessThanOrEqual | Performs a logical comparison of the two OracleString operands to determine if the first is less than or equal to the second. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | NotEquals | Performs a logical comparison of the two OracleString operands to determine if they are not equal. |
![]() | ToString | Converts an OracleString object to a String. (Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition | Concatenates the two specified OracleString structures. |
![]() ![]() | Equality | Performs a logical comparison of the two OracleString operands to determine if they are equal. |
![]() ![]() | Explicit(OracleString to String) | Converts an OracleString to a String. |
![]() ![]() | GreaterThan | Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second. |
![]() ![]() | GreaterThanOrEqual | Performs a logical comparison of the two OracleString operands to determine if the first is greater than or equal to the second. |
![]() ![]() | Implicit(String to OracleString) | Converts the String parameter to an OracleString. |
![]() ![]() | Inequality | Performs a logical comparison of the two OracleString operands to determine if they are equal. |
![]() ![]() | LessThan | Performs a logical comparison of the two OracleString operands to determine if the first is less than the second. |
![]() ![]() | LessThanOrEqual | Performs a logical comparison of the two OracleString operands to determine if the first is less than or equal to the second. |
To obtain an OracleString object, call the GetOracleString method.
using System;
using System.Data.OracleClient;
public class Class1 {
public static void Main() {
OracleString oraclestring1 = new OracleString("MyOracleString1");
OracleString oraclestring2 = new OracleString("MyOracleString2");
OracleString oraclestring3 = new OracleString("MyOracleString1");
// Type: System.Data.OracleClient.OracleString
Console.WriteLine("Type: " + oraclestring1.GetType());
// Length: 15
Console.WriteLine("Length: " + oraclestring1.Length);
// False
Console.WriteLine(oraclestring1.IsNull);
// -1
Console.WriteLine(oraclestring1.CompareTo(oraclestring2));
// 0
Console.WriteLine(oraclestring1.CompareTo(oraclestring3));
// 1
Console.WriteLine(oraclestring2.CompareTo(oraclestring3));
// False
Console.WriteLine(oraclestring1.Equals(oraclestring2));
// True
Console.WriteLine(oraclestring1.Equals(oraclestring3));
// MyOracleString1
Console.WriteLine(oraclestring1.Value);
// MyOracleString2
Console.WriteLine(oraclestring2.ToString());
}
}
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
