Click or drag to resize

MongoGridFSStream Methods

The MongoGridFSStream type exposes the following members.

Methods
  NameDescription
Public methodBeginRead (Inherited from Stream.)
Public methodBeginWrite (Inherited from Stream.)
Public methodClose (Inherited from Stream.)
Public methodCopyTo(Stream) (Inherited from Stream.)
Public methodCopyTo(Stream, Int32) (Inherited from Stream.)
Public methodCopyToAsync(Stream) (Inherited from Stream.)
Public methodCopyToAsync(Stream, Int32) (Inherited from Stream.)
Public methodCopyToAsync(Stream, Int32, CancellationToken) (Inherited from Stream.)
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Protected methodCreateWaitHandle Obsolete. (Inherited from Stream.)
Public methodDispose (Inherited from Stream.)
Protected methodDispose(Boolean)
Disposes of any resources used by the stream.
(Overrides StreamDispose(Boolean).)
Public methodEndRead (Inherited from Stream.)
Public methodEndWrite (Inherited from Stream.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlush
Flushes any unsaved data in the buffers to the GridFS file.
(Overrides StreamFlush.)
Public methodFlushAsync (Inherited from Stream.)
Public methodFlushAsync(CancellationToken) (Inherited from Stream.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Protected methodObjectInvariant Obsolete. (Inherited from Stream.)
Public methodRead
Reads bytes from the GridFS stream.
(Overrides StreamRead(Byte, Int32, Int32).)
Public methodReadAsync(Byte, Int32, Int32) (Inherited from Stream.)
Public methodReadAsync(Byte, Int32, Int32, CancellationToken) (Inherited from Stream.)
Public methodReadByte
Reads one byte from the GridFS stream.
(Overrides StreamReadByte.)
Public methodSeek
Seeks to a new position.
(Overrides StreamSeek(Int64, SeekOrigin).)
Public methodSetLength
Sets the length of the GridFS file.
(Overrides StreamSetLength(Int64).)
Public methodToString (Inherited from Object.)
Public methodWrite
Writes bytes to the GridFS stream.
(Overrides StreamWrite(Byte, Int32, Int32).)
Public methodWriteAsync(Byte, Int32, Int32) (Inherited from Stream.)
Public methodWriteAsync(Byte, Int32, Int32, CancellationToken) (Inherited from Stream.)
Public methodWriteByte
Writes one byte to the GridFS stream.
(Overrides StreamWriteByte(Byte).)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also