In vb.net or C#, is it possible to retrieve a certain number of files e.g. 100 from a folder instead of scanning all files (e.g. 1000000) and retrieve them all?

If yes, then what is the implementation?

Many thanks