MongoDB.Collection.Collection C# (CSharp) Метод

Collection() публичный Метод

Create a new Collection object. If options are included, sends a command to the database, otherwise the reference is 'lazy'
public Collection ( string name, Database db, object>.IDictionary options = null ) : System
name string
db Database
options object>.IDictionary /// valid options are: /// size - initial size (bytes), also max if capped /// capped - true if capped /// max - max object count if capped (optional) ///
Результат System
        public Collection(string name, Database db, IDictionary<string, object> options = null)
        {
            Contract.Requires(NameOk(name));
              Contract.Requires(db != null);
              _name = name;
              _db = db;
              _fullName = db.Name + "." + name;
              if (options != null)
              {
            Create(options);
              }
        }