DbExpressionBuilder.NewEmptyCollection(TypeUsage) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Membuat baru DbNewInstanceExpression yang membuat koleksi kosong dari jenis koleksi yang ditentukan.
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
Jenis metadata untuk koleksi yang akan dibuat.
Mengembalikan
DbNewInstanceExpression baru dengan jenis koleksi yang ditentukan dan daftar kosong Arguments .
Pengecualian
collectionType adalah null.
collectionType bukan jenis koleksi.