I’m using Silverlight 4 OOB & elevated trust.
I need to get all the filenames on specific directory & populate an object List(Of String)
The compiler throws an error “Method not found” on .Getfiles() method.
Dim files() As String = System.IO.Directory.Getfiles(Path) 'this line is failing..
Help!
The
GetFilesis marked as “Security Critical” and therefore cannot be used from your code.You will want to use the
EnumerateFilesmethod instead.GetFilesis sooo .NET 1.0,EnumerateFilesis much slicker, even in the full framework you’d want avoid this older Array returning API if you can.