SqlInt32.Explicit Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts to and from a SqlInt32.
Explicit(SqlString to SqlInt32) | |
Explicit(SqlSingle to SqlInt32) | |
Explicit(SqlMoney to SqlInt32) | |
Explicit(SqlInt64 to SqlInt32) | |
Explicit(SqlInt32 to Int32) |
Converts the supplied SqlInt32 structure to an integer. |
Explicit(SqlDouble to SqlInt32) | |
Explicit(SqlDecimal to SqlInt32) |
Converts the supplied SqlDecimal structure to SqlInt32. |
Explicit(SqlBoolean to SqlInt32) |
Converts the supplied SqlBoolean to SqlInt32. |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlString) As SqlInt32
Parameters
Returns
A new SqlInt32 structure whose Value property equals the value represented by the SqlString parameter.
Remarks
The equivalent method for this operator is SqlString.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlInt32
Parameters
Returns
A new SqlInt32 structure whose Value property equals the integer part of the SqlSingle parameter.
Remarks
The equivalent method for this operator is SqlSingle.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlInt32
Parameters
Returns
A new SqlInt32 structure whose Value property equals the Value property of the SqlMoney parameter.
Remarks
The equivalent method for this operator is SqlMoney.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlInt32
Parameters
Returns
A new SqlInt32 structure whose Value property equals the Value property of the SqlInt64
parameter.
Remarks
The equivalent method for this operator is SqlInt64.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
Converts the supplied SqlInt32 structure to an integer.
public:
static explicit operator int(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator int(System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> int
Public Shared Narrowing Operator CType (x As SqlInt32) As Integer
Parameters
Returns
The converted integer value.
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlInt32
Parameters
Returns
A new SqlInt32 structure whose Value property equals the integer part of the SqlDouble parameter.
Remarks
The equivalent method for this operator is SqlDouble.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
Converts the supplied SqlDecimal structure to SqlInt32.
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlInt32
Parameters
A SqlDecimal structure.
Returns
A new SqlInt32 structure whose Value property equals the Value property of the SqlDecimal parameter.
Remarks
The equivalent method for this operator is SqlDecimal.ToSqlInt32()
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 |
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
- Source:
- SQLInt32.cs
Converts the supplied SqlBoolean to SqlInt32.
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlInt32(System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlInt32
Parameters
A SqlBoolean structure.
Returns
A new SqlInt32 structure whose Value property is equal to the ByteValue property of the SqlBoolean parameter.
Remarks
The equivalent method for this operator is SqlBoolean.ToSqlInt32()
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: