DbExpressionBuilder.NewEmptyCollection(TypeUsage) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un nouveau DbNewInstanceExpression qui construit une collection vide du type de collection spécifié.
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ètres
- collectionType
- TypeUsage
Métadonnées de type de la collection à créer.
Retours
Nouvelle DbNewInstanceExpression avec le type de collection spécifié et une liste d’arguments vides.
Exceptions
collectionType a la valeur null.
collectionType n’est pas un type de collection.