DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.