Method GetSlice NamespaceMongoDB.Bson.IO AssemblyMongoDB.Bson.dll GetSlice(int, int) Gets a slice of this buffer. IByteBuffer GetSlice(int position, int length) Parameters position int The position of the start of the slice. length int The length of the slice. Returns IByteBuffer A slice of this buffer.