DbExpressionBuilder.Constant メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
新しい DbConstantExpressionを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Constant(TypeUsage, Object) |
指定した定数値を使用して、指定したプリミティブ型の新しい DbConstantExpression を作成します。 |
| Constant(Object) |
指定した定数値を使用して新しい DbConstantExpression を作成します。 |
Constant(TypeUsage, Object)
指定した定数値を使用して、指定したプリミティブ型の新しい DbConstantExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbConstantExpression ^ Constant(System::Data::Metadata::Edm::TypeUsage ^ constantType, System::Object ^ value);
public static System.Data.Common.CommandTrees.DbConstantExpression Constant(this System.Data.Metadata.Edm.TypeUsage constantType, object value);
static member Constant : System.Data.Metadata.Edm.TypeUsage * obj -> System.Data.Common.CommandTrees.DbConstantExpression
<Extension()>
Public Function Constant (constantType As TypeUsage, value As Object) As DbConstantExpression
パラメーター
- constantType
- TypeUsage
定数値の型。
- value
- Object
表す定数値。
返品
指定された値と constantTypeの結果型を持つ新しい DbConstantExpression。
例外
value または constantType が null です。
value は有効な定数型のインスタンスではありません。 constantType はプリミティブ型を表していません。または、 value が constantTypeで表されるプリミティブ型とは異なるプリミティブ型です。
適用対象
Constant(Object)
指定した定数値を使用して新しい DbConstantExpression を作成します。
public:
static System::Data::Common::CommandTrees::DbConstantExpression ^ Constant(System::Object ^ value);
public static System.Data.Common.CommandTrees.DbConstantExpression Constant(object value);
static member Constant : obj -> System.Data.Common.CommandTrees.DbConstantExpression
Public Function Constant (value As Object) As DbConstantExpression
パラメーター
- value
- Object
表す定数値。
返品
指定された値を持つ新しい DbConstantExpression。
例外
value が null です。
value が有効な定数型のインスタンスではありません。