C# Class MongoDB.GridFS.GridFile

Afficher le fichier Open project: sdether/mongodb-csharp Class Usage Examples

Méthodes publiques

Méthode Description
Copy ( String src, String dest ) : void

Copies one file to another. The destination file must not exist or an IOException will be thrown.

Create ( String filename ) : GridFileStream
Create ( String filename, FileMode mode ) : GridFileStream
Create ( String filename, FileMode mode, FileAccess access ) : GridFileStream
Delete ( Document query ) : void

Permanently removes all files from the database that match the query.

Delete ( Object id ) : void

Permanently removes a file from the database.

Delete ( String filename ) : void

Permanently removes a file from the database.

Exists ( Object id ) : System.Boolean

Gets a value indicating whether the file exists.

Exists ( string name ) : System.Boolean

Gets a value indicating whether the file exists.

GridFile ( Database db ) : System
GridFile ( Database db, string bucket ) : System
ListFiles ( ) : ICursor
ListFiles ( Document query ) : ICursor
Move ( Object id, String dest ) : void
Move ( String src, String dest ) : void
Open ( string filename, FileMode mode, FileAccess access ) : GridFileStream
OpenRead ( String filename ) : GridFileStream
OpenWrite ( String filename ) : GridFileStream

Method Details

Copy() public méthode

Copies one file to another. The destination file must not exist or an IOException will be thrown.
Source file not found. Destination file already exists. A database error occurred executing the copy function.
public Copy ( String src, String dest ) : void
src String
dest String
Résultat void

Create() public méthode

public Create ( String filename ) : GridFileStream
filename String
Résultat GridFileStream

Create() public méthode

public Create ( String filename, FileMode mode ) : GridFileStream
filename String
mode FileMode
Résultat GridFileStream

Create() public méthode

public Create ( String filename, FileMode mode, FileAccess access ) : GridFileStream
filename String
mode FileMode
access FileAccess
Résultat GridFileStream

Delete() public méthode

Permanently removes all files from the database that match the query.
public Delete ( Document query ) : void
query Document
Résultat void

Delete() public méthode

Permanently removes a file from the database.
public Delete ( Object id ) : void
id Object
Résultat void

Delete() public méthode

Permanently removes a file from the database.
public Delete ( String filename ) : void
filename String
Résultat void

Exists() public méthode

Gets a value indicating whether the file exists.
public Exists ( Object id ) : System.Boolean
id Object
Résultat System.Boolean

Exists() public méthode

Gets a value indicating whether the file exists.
public Exists ( string name ) : System.Boolean
name string
Résultat System.Boolean

GridFile() public méthode

public GridFile ( Database db ) : System
db MongoDB.Database
Résultat System

GridFile() public méthode

public GridFile ( Database db, string bucket ) : System
db MongoDB.Database
bucket string
Résultat System

ListFiles() public méthode

public ListFiles ( ) : ICursor
Résultat ICursor

ListFiles() public méthode

public ListFiles ( Document query ) : ICursor
query Document
Résultat ICursor

Move() public méthode

public Move ( Object id, String dest ) : void
id Object
dest String
Résultat void

Move() public méthode

public Move ( String src, String dest ) : void
src String
dest String
Résultat void

Open() public méthode

public Open ( string filename, FileMode mode, FileAccess access ) : GridFileStream
filename string
mode FileMode
access FileAccess
Résultat GridFileStream

OpenRead() public méthode

public OpenRead ( String filename ) : GridFileStream
filename String
Résultat GridFileStream

OpenWrite() public méthode

public OpenWrite ( String filename ) : GridFileStream
filename String
Résultat GridFileStream