OracleString Estrutura
Definição
Representa um fluxo de tamanho variável de caracteres a ser armazenado ou recuperado do banco de dados.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
- Herança
- Implementações
Exemplos
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());
}
}
Comentários
Para obter um OracleString objeto, chame o GetOracleString método.To obtain an OracleString object, call the GetOracleString method.
Construtores
| OracleString(String) |
Inicializa uma nova instância da classe OracleString e especifica a cadeia de caracteres a armazenar.Initializes a new instance of the OracleString class and specifies the string to store. |
Campos
| Empty |
Representa uma cadeia de caracteres que pode ser atribuída à propriedade Value de uma instância da estrutura OracleString.Represents an empty string that can be assigned to the Value property of an instance of the OracleString structure. |
| Null |
Representa um valor nulo que pode ser atribuído à propriedade Value de uma instância da estrutura OracleString.Represents a null value that can be assigned to the Value property of an instance of the OracleString structure. |
Propriedades
| IsNull |
Indica se o Value do OracleString é um Null.Indicates whether the Value of the OracleString is Null. |
| Item[Int32] |
Obtém o byte único da propriedade |
| Length |
Obtém o comprimento da cadeia de caracteres armazenada nessa estrutura OracleString.Gets the length of the string that is stored in this OracleString structure. |
| Value |
Obtém a cadeia de caracteres armazenada na estrutura OracleString.Gets the string that is stored in the OracleString structure. |
Métodos
| CompareTo(Object) |
Compara essa instância de OracleString a um objeto fornecido e retorna uma indicação de seus valores relativos.Compares this instance of OracleString to the supplied object and returns an indication of their relative values. |
| Concat(OracleString, OracleString) |
Concatena as duas estruturas OracleString especificadas.Concatenates the two specified OracleString structures. |
| Equals(Object) |
Compara o parâmetro de objeto fornecido com a propriedade Value do objeto OracleString.Compares the supplied object parameter to the Value property of the OracleString object. |
| Equals(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se eles são iguais.Performs a logical comparison of the two OracleString operands to determine if they are equal. |
| GetHashCode() |
Obtém o código hash para esta instância.Gets the hash code for this instance. |
| GreaterThan(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é maior que o segundo.Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second. |
| GreaterThanOrEqual(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é maior ou igual ao segundo.Performs a logical comparison of the two OracleString operands to determine if the first is greater than or equal to the second. |
| LessThan(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é menor que o segundo.Performs a logical comparison of the two OracleString operands to determine if the first is less than the second. |
| LessThanOrEqual(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é menor ou igual ao segundo.Performs a logical comparison of the two OracleString operands to determine if the first is less than or equal to the second. |
| NotEquals(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se eles não são iguais.Performs a logical comparison of the two OracleString operands to determine if they are not equal. |
| ToString() |
Converte um objeto |
Operadores
| Addition(OracleString, OracleString) |
Concatena as duas estruturas OracleString especificadas.Concatenates the two specified OracleString structures. |
| Equality(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se eles são iguais.Performs a logical comparison of the two OracleString operands to determine if they are equal. |
| Explicit(OracleString to String) |
Converte um OracleString em um String.Converts an OracleString to a String. |
| GreaterThan(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é maior que o segundo.Performs a logical comparison of the two OracleString operands to determine if the first is greater than the second. |
| GreaterThanOrEqual(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é maior ou igual ao segundo.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) |
Converte o parâmetro String em um OracleString.Converts the String parameter to an OracleString. |
| Inequality(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se eles são iguais.Performs a logical comparison of the two OracleString operands to determine if they are equal. |
| LessThan(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é menor que o segundo.Performs a logical comparison of the two OracleString operands to determine if the first is less than the second. |
| LessThanOrEqual(OracleString, OracleString) |
Executa uma comparação lógica dos dois operandos OracleString para determinar se o primeiro é menor ou igual ao segundo.Performs a logical comparison of the two OracleString operands to determine if the first is less than or equal to the second. |