DbExpressionBuilder.CastTo(DbExpression, TypeUsage) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
キャスト操作をポリモーフィックな引数に適用する新しい DbCastExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbCastExpression ^ CastTo(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Metadata::Edm::TypeUsage ^ toType);
public static System.Data.Common.CommandTrees.DbCastExpression CastTo(this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Metadata.Edm.TypeUsage toType);
static member CastTo : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbCastExpression
<Extension()>
Public Function CastTo (argument As DbExpression, toType As TypeUsage) As DbCastExpression
パラメーター
- argument
- DbExpression
キャストを適用する引数。
- toType
- TypeUsage
キャストする型を指定する型メタデータ。
返品
指定された引数とターゲット型を持つ新しい DbCastExpression。
例外
argument または toType が null です。
指定されたキャストが無効です。