Method | Description | |
---|---|---|
AppendText ( string remoteFileName ) : |
Appends UTF-8 encoded text to an existing GridFS file.
|
|
CopyTo ( string sourceFileName, string destFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Copies a GridFS file.
|
|
CopyTo ( string sourceFileName, string destFileName, |
Copies a GridFS file.
|
|
Create ( string remoteFileName ) : |
Creates or overwrites a GridFS file.
|
|
Create ( string remoteFileName, |
Creates or overwrites a GridFS file.
|
|
CreateText ( string remoteFileName ) : |
Creates or opens a GridFS file for writing UTF-8 encoded text.
|
|
CreateText ( string remoteFileName, |
Creates or opens a GridFS file for writing UTF-8 encoded text.
|
|
Delete ( IMongoQuery query ) : void |
Deletes GridFS files.
|
|
Delete ( string remoteFileName ) : void |
Deletes all versions of a GridFS file.
|
|
DeleteById ( BsonValue id ) : void |
Deletes a GridFS file.
|
|
Download ( Stream stream, IMongoQuery query ) : void |
Downloads the most recent version of a GridFS file.
|
|
Download ( Stream stream, IMongoQuery query, int version ) : void |
Downloads a specific version of a GridFS file.
|
|
Download ( Stream stream, MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo ) : void |
Downloads a GridFS file.
|
|
Download ( Stream stream, string remoteFileName ) : void |
Downloads the most recent version of a GridFS file.
|
|
Download ( Stream stream, string remoteFileName, int version ) : void |
Downloads a specific version of a GridFS file.
|
|
Download ( string fileName ) : void |
Downloads the most recent version of a GridFS file.
|
|
Download ( string localFileName, IMongoQuery query ) : void |
Downloads the most recent version of a GridFS file.
|
|
Download ( string localFileName, IMongoQuery query, int version ) : void |
Downloads a specific version of a GridFS file.
|
|
Download ( string localFileName, MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo ) : void |
Downloads a GridFS file.
|
|
Download ( string fileName, int version ) : void |
Downloads a specific version of a GridFS file.
|
|
Download ( string localFileName, string remoteFileName ) : void |
Downloads the most recent version of a GridFS file.
|
|
Download ( string localFileName, string remoteFileName, int version ) : void |
Downloads a specific version of a GridFS file.
|
|
EnsureIndexes ( ) : void |
Ensures that the proper indexes for GridFS exist (only creates the new indexes if there are fewer than 1000 GridFS files).
|
|
EnsureIndexes ( int maxFiles ) : void |
Ensures that the proper indexes for GridFS exist.
|
|
Exists ( IMongoQuery query ) : bool |
Tests whether a GridFS file exists.
|
|
Exists ( string remoteFileName ) : bool |
Tests whether a GridFS file exists.
|
|
ExistsById ( BsonValue id ) : bool |
Tests whether a GridFS file exists.
|
|
Find ( IMongoQuery query ) : MongoCursor |
Finds matching GridFS files.
|
|
Find ( string remoteFileName ) : MongoCursor |
Finds matching GridFS files.
|
|
FindAll ( ) : MongoCursor |
Finds all GridFS files.
|
|
FindOne ( IMongoQuery query ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Finds the most recent version of a GridFS file.
|
|
FindOne ( IMongoQuery query, int version ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Finds a specific version of a GridFS file.
|
|
FindOne ( string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Finds the most recent version of a GridFS file.
|
|
FindOne ( string remoteFileName, int version ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Finds a specific version of a GridFS file.
|
|
FindOneById ( BsonValue id ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Finds a GridFS file.
|
|
MongoGridFS ( MongoDatabase database ) : System |
Initializes a new instance of the MongoGridFS class.
|
|
MongoGridFS ( MongoDatabase database, MongoDB.Driver.GridFS.MongoGridFSSettings settings ) : System |
Initializes a new instance of the MongoGridFS class.
|
|
MoveTo ( string sourceFileName, string destFileName ) : void |
Moves the most recent version of a GridFS file.
|
|
Open ( string remoteFileName, FileMode mode ) : |
Opens a GridFS file with the specified mode.
|
|
Open ( string remoteFileName, FileMode mode, FileAccess access ) : |
Opens a GridFS file with the specified mode and access.
|
|
Open ( string remoteFileName, FileMode mode, FileAccess access, |
Opens a GridFS file with the specified mode, access and create options.
|
|
OpenRead ( string remoteFileName ) : |
Opens an existing GridFS file for reading.
|
|
OpenText ( string remoteFileName ) : |
Opens an existing UTF-8 encoded text GridFS file for reading.
|
|
OpenWrite ( string remoteFileName ) : |
Opens an existing GridFS file for writing.
|
|
OpenWrite ( string remoteFileName, |
Opens an existing GridFS file for writing.
|
|
SetAliases ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, string aliases ) : void |
Sets the aliases for an existing GridFS file.
|
|
SetContentType ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, string contentType ) : void |
Sets the content type for an existing GridFS file.
|
|
SetMetadata ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, BsonValue metadata ) : void |
Sets the metadata for an existing GridFS file.
|
|
Upload ( Stream stream, string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Uploads a GridFS file.
|
|
Upload ( Stream stream, string remoteFileName, |
Uploads a GridFS file.
|
|
Upload ( string fileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Uploads a GridFS file.
|
|
Upload ( string localFileName, string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo |
Uploads a GridFS file.
|
public AppendText ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public CopyTo ( string sourceFileName, string destFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
sourceFileName | string | The source file name. |
destFileName | string | The destination file name. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public CopyTo ( string sourceFileName, string destFileName, |
||
sourceFileName | string | The source file name. |
destFileName | string | The destination file name. |
createOptions | The create options. | |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public Create ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public Create ( string remoteFileName, |
||
remoteFileName | string | The remote file name. |
createOptions | The create options. | |
return |
public CreateText ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public CreateText ( string remoteFileName, |
||
remoteFileName | string | The remote file name. |
createOptions | The create options. | |
return |
public Delete ( IMongoQuery query ) : void | ||
query | IMongoQuery | A query that specifies the GridFS files to delete. |
return | void |
public Delete ( string remoteFileName ) : void | ||
remoteFileName | string | The remote file name. |
return | void |
public DeleteById ( BsonValue id ) : void | ||
id | BsonValue | The GridFS file Id. |
return | void |
public Download ( Stream stream, IMongoQuery query ) : void | ||
stream | Stream | The destination stream. |
query | IMongoQuery | The GridFS file. |
return | void |
public Download ( Stream stream, IMongoQuery query, int version ) : void | ||
stream | Stream | The destination stream. |
query | IMongoQuery | The GridFS file. |
version | int | The version to download. |
return | void |
public Download ( Stream stream, MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo ) : void | ||
stream | Stream | The destination stream. |
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file. |
return | void |
public Download ( Stream stream, string remoteFileName ) : void | ||
stream | Stream | The destination stream. |
remoteFileName | string | The remote file name. |
return | void |
public Download ( Stream stream, string remoteFileName, int version ) : void | ||
stream | Stream | The destination stream. |
remoteFileName | string | The remote file name. |
version | int | The version to download. |
return | void |
public Download ( string fileName ) : void | ||
fileName | string | The file name (same local and remote names). |
return | void |
public Download ( string localFileName, IMongoQuery query ) : void | ||
localFileName | string | The local file name. |
query | IMongoQuery | The GridFS file. |
return | void |
public Download ( string localFileName, IMongoQuery query, int version ) : void | ||
localFileName | string | The local file name. |
query | IMongoQuery | The GridFS file. |
version | int | The version to download. |
return | void |
public Download ( string localFileName, MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo ) : void | ||
localFileName | string | The local file name. |
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file. |
return | void |
public Download ( string fileName, int version ) : void | ||
fileName | string | The file name (same local and remote names). |
version | int | The version to download. |
return | void |
public Download ( string localFileName, string remoteFileName ) : void | ||
localFileName | string | The local file name. |
remoteFileName | string | The remote file name. |
return | void |
public Download ( string localFileName, string remoteFileName, int version ) : void | ||
localFileName | string | The local file name. |
remoteFileName | string | The remote file name. |
version | int | The version to download. |
return | void |
public EnsureIndexes ( int maxFiles ) : void | ||
maxFiles | int | Only create new indexes if there are fewer than this number of GridFS files). |
return | void |
public Exists ( IMongoQuery query ) : bool | ||
query | IMongoQuery | The GridFS file. |
return | bool |
public Exists ( string remoteFileName ) : bool | ||
remoteFileName | string | The GridFS file. |
return | bool |
public ExistsById ( BsonValue id ) : bool | ||
id | BsonValue | The GridFS file. |
return | bool |
public Find ( IMongoQuery query ) : MongoCursor |
||
query | IMongoQuery | A query. |
return | MongoCursor |
public Find ( string remoteFileName ) : MongoCursor |
||
remoteFileName | string | The remote file name. |
return | MongoCursor |
public FindOne ( IMongoQuery query ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
query | IMongoQuery | The GridFS file. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public FindOne ( IMongoQuery query, int version ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
query | IMongoQuery | The GridFS file. |
version | int | The version to find. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public FindOne ( string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
remoteFileName | string | The remote file name. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public FindOne ( string remoteFileName, int version ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
remoteFileName | string | The remote file name. |
version | int | The version to find. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public FindOneById ( BsonValue id ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
id | BsonValue | The GridFS file Id. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public MongoGridFS ( MongoDatabase database ) : System | ||
database | MongoDatabase | The database containing the GridFS collections. |
return | System |
public MongoGridFS ( MongoDatabase database, MongoDB.Driver.GridFS.MongoGridFSSettings settings ) : System | ||
database | MongoDatabase | The database containing the GridFS collections. |
settings | MongoDB.Driver.GridFS.MongoGridFSSettings | The GridFS settings. |
return | System |
public MoveTo ( string sourceFileName, string destFileName ) : void | ||
sourceFileName | string | The source file name. |
destFileName | string | The destination file name. |
return | void |
public Open ( string remoteFileName, FileMode mode ) : |
||
remoteFileName | string | The remote file name. |
mode | FileMode | The mode. |
return |
public Open ( string remoteFileName, FileMode mode, FileAccess access ) : |
||
remoteFileName | string | The remote file name. |
mode | FileMode | The mode. |
access | FileAccess | The access. |
return |
public Open ( string remoteFileName, FileMode mode, FileAccess access, |
||
remoteFileName | string | The remote file name. |
mode | FileMode | The mode. |
access | FileAccess | The access. |
createOptions | The create options. | |
return |
public OpenRead ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public OpenText ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public OpenWrite ( string remoteFileName ) : |
||
remoteFileName | string | The remote file name. |
return |
public OpenWrite ( string remoteFileName, |
||
remoteFileName | string | The remote file name. |
createOptions | The create options. | |
return |
public SetAliases ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, string aliases ) : void | ||
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file. |
aliases | string | The aliases. |
return | void |
public SetContentType ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, string contentType ) : void | ||
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file. |
contentType | string | The content type. |
return | void |
public SetMetadata ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, BsonValue metadata ) : void | ||
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file. |
metadata | BsonValue | The metadata. |
return | void |
public Upload ( Stream stream, string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
stream | Stream | The source stream. |
remoteFileName | string | The remote file name. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public Upload ( Stream stream, string remoteFileName, |
||
stream | Stream | The source stream. |
remoteFileName | string | The remote file name. |
createOptions | The create options. | |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public Upload ( string fileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
fileName | string | The file name (same local and remote names). |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |
public Upload ( string localFileName, string remoteFileName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo | ||
localFileName | string | The local file name. |
remoteFileName | string | The remote file name. |
return | MongoDB.Driver.GridFS.MongoGridFSFileInfo |