DirectoryGetFileSystemEntriesTransacted Method (KernelTransaction, String)
public static string GetFileSystemEntriesTransacted( KernelTransaction transaction, string path )
Public Shared Function GetFileSystemEntriesTransacted ( transaction As KernelTransaction, path As String ) As String()
public: static array<String^>^ GetFileSystemEntriesTransacted( KernelTransaction^ transaction, String^ path )
static member GetFileSystemEntriesTransacted : transaction : KernelTransaction * path : string -> string
The EnumerateFileSystemEntries and GetFileSystemEntries methods differ as follows: When you use EnumerateFileSystemEntries, you can start enumerating the collection of entries before the whole collection is returned; when you use GetFileSystemEntries, you must wait for the whole array of entries to be returned before you can access the array. Therefore, when you are working with many files and directories, EnumerateFiles can be more efficient.