SqlString.Explicit 運算子

定義

轉換到 和 轉換 SqlString

多載

名稱 Description
Explicit(SqlString to String)

SqlString 轉換成 String

Explicit(SqlSingle to SqlString)

將指定的 SqlSingle 參數 SqlString轉換為 。

Explicit(SqlMoney to SqlString)

將指定的 SqlMoney 參數 SqlString轉換為 。

Explicit(SqlInt64 to SqlString)

將指定的 SqlInt64 參數 SqlString轉換為 。

Explicit(SqlInt16 to SqlString)

將指定的 SqlInt16 參數 SqlString轉換為 。

Explicit(SqlInt32 to SqlString)

將指定的 SqlInt32 參數 SqlString轉換為 。

Explicit(SqlDouble to SqlString)

將指定的 SqlDouble 參數 SqlString轉換為 。

Explicit(SqlDecimal to SqlString)

將指定的 SqlDecimal 參數 SqlString轉換為 。

Explicit(SqlDateTime to SqlString)

將指定的 SqlDateTime 參數 SqlString轉換為 。

Explicit(SqlByte to SqlString)

將指定的 SqlByte 結構 SqlString轉換為 。

Explicit(SqlBoolean to SqlString)

將指定的 SqlBoolean 結構 SqlString轉換為 。

Explicit(SqlGuid to SqlString)

將指定的 SqlGuid 參數 SqlString轉換為 。

Explicit(SqlString to String)

SqlString 轉換成 String

public:
 static explicit operator System::String ^(System::Data::SqlTypes::SqlString x);
public static explicit operator string(System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> string
Public Shared Narrowing Operator CType (x As SqlString) As String

參數

x
SqlString

SqlString他們將被轉化。

傳回

A String,其內容與 Value 參數的性質 SqlString 相同。

另請參閱

適用於

Explicit(SqlSingle to SqlString)

將指定的 SqlSingle 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlString

參數

x
SqlSingle

要改建的 SqlSingle 建築。

傳回

一個 SqlString 包含參數字 SqlSingle 串表示的新

備註

此運算子 SqlSingle.ToSqlString()的等價方法是 。

另請參閱

適用於

Explicit(SqlMoney to SqlString)

將指定的 SqlMoney 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlString

參數

x
SqlMoney

要改建的 SqlMoney 建築。

傳回

一個 SqlString 包含參數字 SqlMoney 串表示的新

備註

此運算子的等價方法為 SqlMoney.ToSqlString()

另請參閱

適用於

Explicit(SqlInt64 to SqlString)

將指定的 SqlInt64 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlString

參數

x
SqlInt64

要改建的 SqlInt64 建築。

傳回

一個包含 SqlString 參數字 SqlInt64 串表示的新物件。

備註

此運算子的等價方法為 SqlInt64.ToSqlString()

另請參閱

適用於

Explicit(SqlInt16 to SqlString)

將指定的 SqlInt16 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt16 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt16 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt16 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt16) As SqlString

參數

x
SqlInt16

要改建的 SqlInt16 建築。

傳回

一個包含 SqlString 參數字 SqlInt16 串表示的新物件。

備註

此運算子的等價方法為 SqlInt16.ToSqlString()

另請參閱

適用於

Explicit(SqlInt32 to SqlString)

將指定的 SqlInt32 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlInt32) As SqlString

參數

x
SqlInt32

SqlInt32 結構要轉換。

傳回

一個包含 SqlString 參數字 SqlInt32 串表示的新物件。

備註

此運算子的等價方法為 SqlInt32.ToSqlString()

另請參閱

適用於

Explicit(SqlDouble to SqlString)

將指定的 SqlDouble 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlString

參數

x
SqlDouble

要改建的 SqlDouble 建築。

傳回

一個 SqlString 包含參數字 SqlDouble 串表示的新

備註

此運算子的等價方法為 SqlDouble.ToSqlString()

另請參閱

適用於

Explicit(SqlDecimal to SqlString)

將指定的 SqlDecimal 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlString

參數

x
SqlDecimal

要改建的 SqlDecimal 建築。

傳回

一個 SqlString 包含參數字 SqlDecimal 串表示的新

備註

此運算子的等價方法為 SqlDecimal.ToSqlString()

另請參閱

適用於

Explicit(SqlDateTime to SqlString)

將指定的 SqlDateTime 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlDateTime x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlDateTime x);
static member op_Explicit : System.Data.SqlTypes.SqlDateTime -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlDateTime) As SqlString

參數

x
SqlDateTime

要改建的 SqlDateTime 建築。

傳回

一個 SqlString 包含參數字 SqlDateTime 串表示的新

備註

此運算子的等價方法為 SqlDateTime.ToSqlString()

另請參閱

適用於

Explicit(SqlByte to SqlString)

將指定的 SqlByte 結構 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlByte x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlByte x);
static member op_Explicit : System.Data.SqlTypes.SqlByte -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlByte) As SqlString

參數

x
SqlByte

要改建的 SqlByte 建築。

傳回

一個包含 SqlString 參數字 SqlByte 串表示的新物件。

備註

此運算子的等價方法為 SqlByte.ToSqlString()

另請參閱

適用於

Explicit(SqlBoolean to SqlString)

將指定的 SqlBoolean 結構 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlString

參數

x
SqlBoolean

要改建的 SqlBoolean 建築。

傳回

一個 SqlString 包含參數字 SqlBoolean 串表示的新

備註

此運算子的等價方法為 SqlBoolean.ToSqlString()

另請參閱

適用於

Explicit(SqlGuid to SqlString)

將指定的 SqlGuid 參數 SqlString轉換為 。

public:
 static explicit operator System::Data::SqlTypes::SqlString(System::Data::SqlTypes::SqlGuid x);
public static explicit operator System.Data.SqlTypes.SqlString(System.Data.SqlTypes.SqlGuid x);
static member op_Explicit : System.Data.SqlTypes.SqlGuid -> System.Data.SqlTypes.SqlString
Public Shared Narrowing Operator CType (x As SqlGuid) As SqlString

參數

x
SqlGuid

要改建的 SqlGuid 建築。

傳回

SqlString一個 ,其值為指定 SqlGuid的字串表示。

備註

此運算子的等價方法為 SqlGuid.ToSqlString()

另請參閱

適用於