Share via


DbExpressionBuilder.NewEmptyCollection(TypeUsage) メソッド

定義

指定されたコレクション型の空のコレクションを構築する新しい DbNewInstanceExpression を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbNewInstanceExpression ^ NewEmptyCollection(System::Data::Metadata::Edm::TypeUsage ^ collectionType);
public static System.Data.Common.CommandTrees.DbNewInstanceExpression NewEmptyCollection (this System.Data.Metadata.Edm.TypeUsage collectionType);
static member NewEmptyCollection : System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbNewInstanceExpression
<Extension()>
Public Function NewEmptyCollection (collectionType As TypeUsage) As DbNewInstanceExpression

パラメーター

collectionType
TypeUsage

作成するコレクションの型メタデータ。

戻り値

指定されたコレクション型と空の Arguments リストを持つ新しい DbNewInstanceExpression。

例外

collectionType が null です。

collectionType がコレクション型ではありません。

適用対象