Share via


DbExpressionBuilder.NewEmptyCollection(TypeUsage) Methode

Definition

Erstellt eine neue DbNewInstanceExpression, die eine leere Auflistung vom angegebenen Auflistungstyp erstellt.

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

Parameter

collectionType
TypeUsage

Die Typmetadaten für die zu erstellende Auflistung.

Gibt zurück

Ein neues DbNewInstanceExpression mit dem angegebenen Sammlungstyp und einer leeren Arguments-Liste.

Ausnahmen

collectionType ist NULL.

collectionType ist kein Auflistungstyp.

Gilt für: