OracleString Structure

OracleString Structure

 

Represents a variable-length stream of characters to be stored in or retrieved from the database.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

public struct OracleString : IComparable, INullable

NameDescription
System_CAPS_pubmethodOracleString(String)

Initializes a new instance of the OracleString class and specifies the string to store.

NameDescription
System_CAPS_pubpropertyIsNull

Indicates whether the Value of the OracleString is Null.

System_CAPS_pubpropertyItem[Int32]

Gets the single byte from the Value property located at the position indicated by the integer parameter, index.

System_CAPS_pubpropertyLength

Gets the length of the string that is stored in this OracleString structure.

System_CAPS_pubpropertyValue

Gets the string that is stored in the OracleString structure.

NameDescription
System_CAPS_pubmethodCompareTo(Object)

Compares this instance of OracleString to the supplied object and returns an indication of their relative values.

System_CAPS_pubmethodSystem_CAPS_staticConcat(OracleString, OracleString)

Concatenates the two specified OracleString structures.

System_CAPS_pubmethodEquals(Object)

Compares the supplied object parameter to the Value property of the OracleString object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticEquals(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if they are equal.

System_CAPS_pubmethodGetHashCode()

Gets the hash code for this instance.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGreaterThan(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second.

System_CAPS_pubmethodSystem_CAPS_staticGreaterThanOrEqual(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is greater than or equal to the second.

System_CAPS_pubmethodSystem_CAPS_staticLessThan(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is less than the second.

System_CAPS_pubmethodSystem_CAPS_staticLessThanOrEqual(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is less than or equal to the second.

System_CAPS_pubmethodSystem_CAPS_staticNotEquals(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if they are not equal.

System_CAPS_pubmethodToString()

Converts an OracleString object to a String.(Overrides ValueType.ToString().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

Represents an empty string that can be assigned to the Value property of an instance of the OracleString structure.

System_CAPS_pubfieldSystem_CAPS_staticNull

Represents a null value that can be assigned to the Value property of an instance of the OracleString structure.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(OracleString, OracleString)

Concatenates the two specified OracleString structures.

System_CAPS_puboperatorSystem_CAPS_staticEquality(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if they are equal.

System_CAPS_puboperatorSystem_CAPS_staticExplicit(OracleString to String)

Converts an OracleString to a String.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThanOrEqual(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is greater than or equal to the second.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(String to OracleString)

Converts the String parameter to an OracleString.

System_CAPS_puboperatorSystem_CAPS_staticInequality(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if they are equal.

System_CAPS_puboperatorSystem_CAPS_staticLessThan(OracleString, OracleString)

Performs a logical comparison of the two OracleString operands to determine if the first is less than the second.

System_CAPS_puboperatorSystem_CAPS_staticLessThanOrEqual(OracleString, OracleString)

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());
   }
}

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft