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
参数
返回
一个 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
参数
返回
包含参数的SqlSingle字符串表示形式的新SqlString内容。
注解
此运算符 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
参数
返回
包含参数的SqlMoney字符串表示形式的新SqlString内容。
注解
此运算符的等效方法为 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
参数
返回
包含参数的SqlInt64字符串表示形式的新SqlString对象。
注解
此运算符的等效方法为 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
参数
返回
包含参数的SqlInt16字符串表示形式的新SqlString对象。
注解
此运算符的等效方法为 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 结构。
返回
包含参数的SqlInt32字符串表示形式的新SqlString对象。
注解
此运算符的等效方法为 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
参数
返回
包含参数的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
参数
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
参数
SqlDateTime要转换的结构。
返回
包含参数的SqlDateTime字符串表示形式的新SqlString内容。
注解
此运算符的等效方法为 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
参数
返回
包含参数的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
参数
SqlBoolean要转换的结构。
返回
包含参数的SqlBoolean字符串表示形式的新SqlString内容。
注解
此运算符的等效方法为 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()