Represents a variable-length stream of characters to be stored in or retrieved from the database.
public value class OracleString : IComparable, System::Data::SqlTypes::INullable
public struct OracleString : IComparable, System.Data.SqlTypes.INullable
type OracleString = struct
interface INullable
Public Structure OracleString
Implements IComparable, INullable
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());
}
}
To obtain an OracleString object, call the GetOracleString method.
Constructors Fields EmptyRepresents an empty string that can be assigned to the Value property of an instance of the OracleString structure.
NullRepresents a null value that can be assigned to the Value property of an instance of the OracleString structure.
Properties Methods OperatorsCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4