Ayarlamak için sözdizimi nedir çoklu dosya uzantıları olarak searchPatternüzerinde Directory.GetFiles()? Örneğin, .aspx ve .ascx uzantılı dosyaları filtreleme .
// TODO: Set the string 'searchPattern' to only get files with
// the extension '.aspx' and '.ascx'.
var filteredFiles = Directory.GetFiles(path, searchPattern);
Güncelleme : LINQ bir seçenek değildir , bu bir olmak zorunda searchPatterngeçirilen GetFilessöz konusu belirtildiği gibi,.