Edit

Share via


SqlBoolean Constructors

Definition

Initializes a new instance of the SqlBoolean structure.

Overloads

SqlBoolean(Boolean)

Initializes a new instance of the SqlBoolean structure using the supplied Boolean value.

SqlBoolean(Int32)

Initializes a new instance of the SqlBoolean structure using the specified integer value.

SqlBoolean(Boolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Initializes a new instance of the SqlBoolean structure using the supplied Boolean value.

public SqlBoolean(bool value);

Parameters

value
Boolean

The value for the new SqlBoolean structure; either true or false.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

SqlBoolean(Int32)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Initializes a new instance of the SqlBoolean structure using the specified integer value.

public SqlBoolean(int value);

Parameters

value
Int32

The integer whose value is to be used for the new SqlBoolean structure.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1