DbExpressionBuilder.Variable(TypeUsage, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した名前と型の変数を参照する新しい DbVariableReferenceExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbVariableReferenceExpression ^ Variable(System::Data::Metadata::Edm::TypeUsage ^ type, System::String ^ name);
public static System.Data.Common.CommandTrees.DbVariableReferenceExpression Variable(this System.Data.Metadata.Edm.TypeUsage type, string name);
static member Variable : System.Data.Metadata.Edm.TypeUsage * string -> System.Data.Common.CommandTrees.DbVariableReferenceExpression
<Extension()>
Public Function Variable (type As TypeUsage, name As String) As DbVariableReferenceExpression
パラメーター
- type
- TypeUsage
参照される変数の型。
- name
- String
参照先の変数の名前。
返品
指定した名前と型を持つ変数への参照を表す DbVariableReferenceExpression。 式の結果の型は、 typeと同じになります。