次の方法で共有


SqlString から String への変換

SqlStringString に変換します。

returnValue = SqlString.op_Explicit(x)
[C#]
public static explicit operator string(SqlStringx);
[C++]
public: static String* op_Explicit();
[JScript]
returnValue = String(x);

[Visual Basic] Visual Basic では、この型で定義されている型変換を使用することができます。ただし、独自に定義することはできません。

[JScript] JScript では、この型で定義されている型変換を使用することができます。ただし、独自に定義することはできません。

引数 [Visual Basic, JScript]

  • x
    変換される SqlString

パラメータ [C#]

  • x
    変換される SqlString

戻り値

SqlString パラメータの Value プロパティと同じ内容を持つ String。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SqlString 構造体 | SqlString メンバ | System.Data.SqlTypes 名前空間