Method WriteBytes NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll WriteBytes(byte[]) Writes BSON binary data to the writer. void WriteBytes(byte[] bytes) Parameters bytes byte[] The bytes.