MongoDB.Collection.EnsureIndex C# (CSharp) Method

EnsureIndex() private method

private EnsureIndex ( MongoDB.Index index ) : string
index MongoDB.Index
return string
        public string EnsureIndex(Index index)
        {
            /* Since Mongo 1.1.3 the insert function on the server check whether
               * the index already exists in pdfile.cpp so tracking indexes here isn't
               * worth the effort. So here, Ensure can just be an alias for Create.
               */
              return CreateIndex(index);
        }