Table of Contents

Method Exists

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.Legacy.dll

Exists(IMongoQuery)

Tests whether a GridFS file exists.

public bool Exists(IMongoQuery query)

Parameters

query IMongoQuery

The GridFS file.

Returns

bool

True if the GridFS file exists.

Exists(string)

Tests whether a GridFS file exists.

public bool Exists(string remoteFileName)

Parameters

remoteFileName string

The GridFS file.

Returns

bool

True if the GridFS file exists.