DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metódus

Definíció

Létrehoz egy újat DbNewInstanceExpression , amely egy üres gyűjteményt hoz létre a megadott gyűjteménytípusból.

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

Paraméterek

collectionType
TypeUsage

A létrehozandó gyűjtemény metaadatainak típusa.

Válaszok

Egy új DbNewInstanceExpression a megadott gyűjteménytípussal és egy üres argumentumlistával.

Kivételek

collectionType null értékű.

collectionType nem gyűjteménytípus.

A következőre érvényes: