SqlBoolean Struktura
Definicja
Reprezentuje wartość całkowitą, która jest równa 1 lub 0, która ma być przechowywana lub pobierana z bazy danych.Represents an integer value that is either 1 or 0 to be stored in or retrieved from a database.
public value class SqlBoolean : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlBoolean : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlBoolean = struct
interface INullable
interface IXmlSerializable
Public Structure SqlBoolean
Implements IComparable, INullable, IXmlSerializable
- Dziedziczenie
- Atrybuty
- Implementuje
Uwagi
Każda wartość różna od zera jest interpretowana jako 1.Any non-zero value is interpreted as 1.
Kluczową różnicą między SqlBoolean strukturą i standardową wartością logiczną jest to, że w przypadku standardowej wartości logicznej ma true
dwie możliwe wartość SqlBoolean , a false
struktura ma trzy możliwe Truewartości False, lubNull.The key difference between a SqlBoolean structure and a standard Boolean value is that, where a standard Boolean has two possible values, true
and false
, a SqlBoolean structure has three possible values, True, False, or Null.
Konstruktory
SqlBoolean(Boolean) |
Inicjuje nowe wystąpienie SqlBoolean struktury przy użyciu podanej wartości logicznej.Initializes a new instance of the SqlBoolean structure using the supplied Boolean value. |
SqlBoolean(Int32) |
Inicjuje nowe wystąpienie SqlBoolean struktury przy użyciu określonej wartości całkowitej.Initializes a new instance of the SqlBoolean structure using the specified integer value. |
Pola
False |
Reprezentuje wartość false, która może być przypisana do Value właściwości wystąpienia SqlBoolean struktury.Represents a false value that can be assigned to the Value property of an instance of the SqlBoolean structure. |
Null |
Reprezentuje DBNull , że można przypisać do tego wystąpienia SqlBoolean struktury.Represents DBNull that can be assigned to this instance of the SqlBoolean structure. |
One |
Reprezentuje jedną wartość, która może być przypisana do ByteValue właściwości wystąpienia SqlBoolean struktury.Represents a one value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure. |
True |
Reprezentuje wartość true, która może być przypisana do Value właściwości wystąpienia SqlBoolean struktury.Represents a true value that can be assigned to the Value property of an instance of the SqlBoolean structure. |
Zero |
Reprezentuje wartość zerową, która może być przypisana do ByteValue właściwości wystąpienia SqlBoolean struktury.Represents a zero value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure. |
Właściwości
ByteValue |
Pobiera wartość SqlBoolean struktury jako bajt.Gets the value of the SqlBoolean structure as a byte. |
IsFalse |
Wskazuje, czy bieżąca Value wartość Falseto.Indicates whether the current Value is False. |
IsNull |
Wskazuje, czy SqlBoolean Ta struktura ma wartość null.Indicates whether this SqlBoolean structure is null. |
IsTrue |
Pobiera wartość wskazującą, czy bieżąca Value jest. TrueGets a value that indicates whether the current Value is True. |
Value |
Pobiera wartość SqlBoolean struktury.Gets the SqlBoolean structure's value. Ta właściwość jest tylko do odczytu.This property is read-only. |
Metody
And(SqlBoolean, SqlBoolean) |
Oblicza bitowe i operacje dwóch określonych SqlBoolean struktur.Computes the bitwise AND operation of two specified SqlBoolean structures. |
CompareTo(Object) |
Porównuje SqlBoolean tę strukturę z określonym obiektem i zwraca wskazanie ich względnych wartości.Compares this SqlBoolean structure to a specified object and returns an indication of their relative values. |
CompareTo(SqlBoolean) |
Porównuje SqlBoolean ten obiekt do podanego SqlBoolean obiektu i zwraca wskazanie ich względnych wartości.Compares this SqlBoolean object to the supplied SqlBoolean object and returns an indication of their relative values. |
Equals(Object) |
Porównuje podanego parametru obiektu SqlBooleanz.Compares the supplied object parameter to the SqlBoolean. |
Equals(SqlBoolean, SqlBoolean) |
Porównuje SqlBoolean dwie struktury, aby określić, czy są równe.Compares two SqlBoolean structures to determine whether they are equal. |
GetHashCode() |
Zwraca kod skrótu dla tego wystąpienia.Returns the hash code for this instance. |
GetXsdType(XmlSchemaSet) |
Zwraca język definicji schematu XML (XSD) określonego XmlSchemaSet.Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
GreaterThan(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest większe od drugiego.Compares two instances of SqlBoolean to determine whether the first is greater than the second. |
GreaterThanOrEquals(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest większe lub równe drugiemu.Compares two instances of SqlBoolean to determine whether the first is greater than or equal to the second. |
LessThan(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest mniejsze od drugiego.Compares two instances of SqlBoolean to determine whether the first is less than the second. |
LessThanOrEquals(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest mniejsze niż lub równe drugiemu.Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second. |
NotEquals(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean dla równości.Compares two instances of SqlBoolean for equality. |
OnesComplement(SqlBoolean) |
Wykonuje jedną operację uzupełnienia na dostarczonych SqlBoolean strukturach.Performs a one's complement operation on the supplied SqlBoolean structures. |
Or(SqlBoolean, SqlBoolean) |
Wykonuje operacje bitowe w przypadku dwóch określonych SqlBoolean struktur.Performs a bitwise OR operation on the two specified SqlBoolean structures. |
Parse(String) |
Konwertuje określoną String reprezentację wartości logicznej na jej SqlBoolean równoważność.Converts the specified String representation of a logical value to its SqlBoolean equivalent. |
ToSqlByte() |
Konwertuje tę SqlBoolean strukturę na SqlByte.Converts this SqlBoolean structure to SqlByte. |
ToSqlDecimal() |
Konwertuje tę SqlBoolean strukturę na SqlDecimal.Converts this SqlBoolean structure to SqlDecimal. |
ToSqlDouble() |
Konwertuje tę SqlBoolean strukturę na SqlDouble.Converts this SqlBoolean structure to SqlDouble. |
ToSqlInt16() |
Konwertuje tę SqlBoolean strukturę na SqlInt16.Converts this SqlBoolean structure to SqlInt16. |
ToSqlInt32() |
Konwertuje tę SqlBoolean strukturę na SqlInt32.Converts this SqlBoolean structure to SqlInt32. |
ToSqlInt64() |
Konwertuje tę SqlBoolean strukturę na SqlInt64.Converts this SqlBoolean structure to SqlInt64. |
ToSqlMoney() |
Konwertuje tę SqlBoolean strukturę na SqlMoney.Converts this SqlBoolean structure to SqlMoney. |
ToSqlSingle() |
Konwertuje tę SqlBoolean strukturę na SqlSingle.Converts this SqlBoolean structure to SqlSingle. |
ToSqlString() |
Konwertuje tę SqlBoolean strukturę na SqlString.Converts this SqlBoolean structure to SqlString. |
ToString() |
Konwertuje tę SqlBoolean strukturę na ciąg.Converts this SqlBoolean structure to a string. |
Xor(SqlBoolean, SqlBoolean) |
Wykonuje bitową operację na wyłączność lub w podanych parametrach.Performs a bitwise exclusive-OR operation on the supplied parameters. |
Operatory
BitwiseAnd(SqlBoolean, SqlBoolean) |
Oblicza bitowe i operacje dwóch określonych SqlBoolean struktur.Computes the bitwise AND operation of two specified SqlBoolean structures. |
BitwiseOr(SqlBoolean, SqlBoolean) |
Oblicza wartość bitową lub argumentów operacji.Computes the bitwise OR of its operands. |
Equality(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean dla równości.Compares two instances of SqlBoolean for equality. |
ExclusiveOr(SqlBoolean, SqlBoolean) |
Wykonuje bitową operację wykluczającą lub (XOR) dla podanych parametrów.Performs a bitwise exclusive-OR (XOR) operation on the supplied parameters. |
Explicit(SqlBoolean to Boolean) |
SqlBoolean Konwertuje do wartości logicznej.Converts a SqlBoolean to a Boolean. |
Explicit(SqlByte to SqlBoolean) |
SqlByte Konwertuje parametrSqlBoolean na strukturę.Converts the SqlByte parameter to a SqlBoolean structure. |
Explicit(SqlDecimal to SqlBoolean) |
SqlDecimal Konwertuje parametrSqlBoolean na strukturę.Converts the SqlDecimal parameter to a SqlBoolean structure. |
Explicit(SqlDouble to SqlBoolean) |
SqlDouble Konwertuje parametrSqlBoolean na strukturę.Converts the SqlDouble parameter to a SqlBoolean structure. |
Explicit(SqlInt16 to SqlBoolean) |
SqlInt16 Konwertuje parametrSqlBoolean na strukturę.Converts the SqlInt16 parameter to a SqlBoolean structure. |
Explicit(SqlInt32 to SqlBoolean) |
SqlInt32 Konwertuje parametrSqlBoolean na strukturę.Converts the SqlInt32 parameter to a SqlBoolean structure. |
Explicit(SqlInt64 to SqlBoolean) |
SqlInt64 Konwertuje parametrSqlBoolean na strukturę.Converts the SqlInt64 parameter to a SqlBoolean structure. |
Explicit(SqlMoney to SqlBoolean) |
SqlMoney Konwertuje parametrSqlBoolean na strukturę.Converts the SqlMoney parameter to a SqlBoolean structure. |
Explicit(SqlSingle to SqlBoolean) |
SqlSingle Konwertuje parametrSqlBoolean na strukturę.Converts the SqlSingle parameter to a SqlBoolean structure. |
Explicit(SqlString to SqlBoolean) |
SqlString Konwertuje parametrSqlBoolean na strukturę.Converts the SqlString parameter to a SqlBoolean structure. |
False(SqlBoolean) |
Operatora false można użyć do przetestowania Value SqlBoolean , aby określić, czy ma ona wartość false.The false operator can be used to test the Value of the SqlBoolean to determine whether it is false. |
GreaterThan(SqlBoolean, SqlBoolean) |
Porównuje SqlBoolean dwie struktury, aby określić, czy pierwsze jest większe niż sekunda.Compares two SqlBoolean structures to determine whether the first is greater than the second. |
GreaterThanOrEqual(SqlBoolean, SqlBoolean) |
Porównuje SqlBoolean dwie struktury, aby określić, czy pierwsze jest większe lub równe drugiemu.Compares two SqlBoolean structures to determine whether the first is greater than or equal to the second. |
Implicit(Boolean to SqlBoolean) |
Konwertuje wartość podanego bajtu SqlBooleanna.Converts the supplied byte value to a SqlBoolean. |
Inequality(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy nie są równe.Compares two instances of SqlBoolean to determine whether they are not equal. |
LessThan(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest mniejsze od drugiego.Compares two instances of SqlBoolean to determine whether the first is less than the second. |
LessThanOrEqual(SqlBoolean, SqlBoolean) |
Porównuje dwa wystąpienia SqlBoolean , aby określić, czy pierwsze jest mniejsze niż lub równe drugiemu.Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second. |
LogicalNot(SqlBoolean) |
Wykonuje operację NOT na SqlBoolean.Performs a NOT operation on a SqlBoolean. |
OnesComplement(SqlBoolean) |
Wykonuje jedną operację uzupełnienia na dostarczonych SqlBoolean strukturach.Performs a one's complement operation on the supplied SqlBoolean structures. |
True(SqlBoolean) |
Operatora true można użyć do przetestowania Value SqlBoolean w celu ustalenia, czy ma on wartość true.The true operator can be used to test the Value of the SqlBoolean to determine whether it is true. |
Jawne implementacje interfejsu
IXmlSerializable.GetSchema() |
Ten element członkowski obsługuje infrastrukturę programu .NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie.This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
IXmlSerializable.ReadXml(XmlReader) |
Ten element członkowski obsługuje infrastrukturę programu .NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie.This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
IXmlSerializable.WriteXml(XmlWriter) |
Ten element członkowski obsługuje infrastrukturę programu .NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie.This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |