SqlInt32.Explicit 運算子

定義

來回轉換 SqlInt32

多載

Explicit(SqlString to SqlInt32)

將提供的 SqlString 物件轉換成 SqlInt32

Explicit(SqlSingle to SqlInt32)

將提供的 SqlSingle 轉換成 SqlInt32

Explicit(SqlMoney to SqlInt32)

將提供的 SqlMoney 結構轉換成 SqlInt32

Explicit(SqlInt64 to SqlInt32)

將提供的 SqlInt64 轉換成 SqlInt32

Explicit(SqlInt32 to Int32)

將提供的 SqlInt32 結構轉換成整數。

Explicit(SqlDouble to SqlInt32)

將提供的 SqlDouble 轉換成 SqlInt32

Explicit(SqlDecimal to SqlInt32)

將提供的 SqlDecimal 結構轉換成 SqlInt32

Explicit(SqlBoolean to SqlInt32)

將提供的 SqlBoolean 轉換成 SqlInt32

Explicit(SqlString to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlString 物件轉換成 SqlInt32

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

參數

x
SqlString

SqlString 物件。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 SqlString 參數表示的值。

備註

這個運算子的對等方法為 SqlString.ToSqlInt32()

另請參閱

適用於

Explicit(SqlSingle to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlSingle 轉換成 SqlInt32

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

參數

x
SqlSingle

SqlSingle 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 SqlSingle 參數的整數部分。

備註

這個運算子的對等方法為 SqlSingle.ToSqlInt32()

另請參閱

適用於

Explicit(SqlMoney to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlMoney 結構轉換成 SqlInt32

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

參數

x
SqlMoney

SqlMoney 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 Value 參數的 SqlMoney 屬性。

備註

這個運算子的對等方法為 SqlMoney.ToSqlInt32()

另請參閱

適用於

Explicit(SqlInt64 to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlInt64 轉換成 SqlInt32

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

參數

x
SqlInt64

SqlInt64 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 Value 參數的 SqlInt64 屬性。

備註

這個運算子的對等方法為 SqlInt64.ToSqlInt32()

另請參閱

適用於

Explicit(SqlInt32 to Int32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlInt32 結構轉換成整數。

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

參數

x
SqlInt32

SqlInt32 結構。

傳回

轉換的整數值。

另請參閱

適用於

Explicit(SqlDouble to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlDouble 轉換成 SqlInt32

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

參數

x
SqlDouble

SqlDouble 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 SqlDouble 參數的整數部分。

備註

這個運算子的對等方法為 SqlDouble.ToSqlInt32()

另請參閱

適用於

Explicit(SqlDecimal to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlDecimal 結構轉換成 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

參數

x
SqlDecimal

SqlDecimal 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 Value 參數的 SqlDecimal 屬性。

備註

這個運算子的對等方法為 SqlDecimal.ToSqlInt32()

另請參閱

適用於

Explicit(SqlBoolean to SqlInt32)

來源:
SQLInt32.cs
來源:
SQLInt32.cs
來源:
SQLInt32.cs

將提供的 SqlBoolean 轉換成 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

參數

x
SqlBoolean

SqlBoolean 結構。

傳回

新的 SqlInt32 結構,其 Value 屬性等於 ByteValue 參數的 SqlBoolean 屬性。

備註

這個運算子的對等方法為 SqlBoolean.ToSqlInt32()

另請參閱

適用於