SqlString.Explicit 運算子
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
轉換到 和 轉換 SqlString。
多載
Explicit(SqlString to 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
參數
傳回
A String,其內容與 Value 參數的性質 SqlString 相同。
另請參閱
適用於
Explicit(SqlSingle to 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
參數
傳回
一個 SqlString 包含參數字 SqlSingle 串表示的新
備註
此運算子 SqlSingle.ToSqlString()的等價方法是 。
另請參閱
適用於
Explicit(SqlMoney to 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
參數
傳回
一個 SqlString 包含參數字 SqlMoney 串表示的新
備註
此運算子的等價方法為 SqlMoney.ToSqlString()
另請參閱
適用於
Explicit(SqlInt64 to 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
參數
傳回
一個包含 SqlString 參數字 SqlInt64 串表示的新物件。
備註
此運算子的等價方法為 SqlInt64.ToSqlString()
另請參閱
適用於
Explicit(SqlInt16 to 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
參數
傳回
一個包含 SqlString 參數字 SqlInt16 串表示的新物件。
備註
此運算子的等價方法為 SqlInt16.ToSqlString()
另請參閱
適用於
Explicit(SqlInt32 to 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)
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
參數
傳回
一個 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
參數
要改建的 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
參數
要改建的 SqlDateTime 建築。
傳回
一個 SqlString 包含參數字 SqlDateTime 串表示的新
備註
此運算子的等價方法為 SqlDateTime.ToSqlString()
另請參閱
適用於
Explicit(SqlByte to 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
參數
傳回
一個包含 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
參數
要改建的 SqlBoolean 建築。
傳回
一個 SqlString 包含參數字 SqlBoolean 串表示的新
備註
此運算子的等價方法為 SqlBoolean.ToSqlString()
另請參閱
適用於
Explicit(SqlGuid to 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
參數
傳回
SqlString一個 ,其值為指定 SqlGuid的字串表示。
備註
此運算子的等價方法為 SqlGuid.ToSqlString()