单项选择题

DirectoryInfo类的实例对象用于获得指定目录下所有文件的方法是()。

A.GetDirectories
B.GetFiles
C.GetHashCode
D.GetObjectData