SqlString.Explicit 操作员

定义

转换到 /从中 SqlString转换 。

重载

名称 说明
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要转换的。

返回

一个 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要转换的结构。

返回

包含参数的SqlSingle字符串表示形式的新SqlString内容。

注解

此运算符 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要转换的结构。

返回

包含参数的SqlMoney字符串表示形式的新SqlString内容。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlInt64字符串表示形式的新SqlString对象。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlInt16字符串表示形式的新SqlString对象。

注解

此运算符的等效方法为 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 结构。

返回

包含参数的SqlInt32字符串表示形式的新SqlString对象。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlDouble字符串表示形式的新SqlString内容。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlDecimal字符串表示形式的新SqlString内容。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlDateTime字符串表示形式的新SqlString内容。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlByte字符串表示形式的新SqlString对象。

注解

此运算符的等效方法为 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要转换的结构。

返回

包含参数的SqlBoolean字符串表示形式的新SqlString内容。

注解

此运算符的等效方法为 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()

另请参阅

适用于