Sebas » 08.09.2005 (Чт) 8:51
Cорри, лоханулся, это для АД ...
-----------------------------------
Public Shared Function GetDirectories(ByVal path As String, ByVal searchPattern As String, ByVal searchOption As System.IO.SearchOption) As String()
Member of: System.IO.Directory
Summary:
Gets an array of directories matching the specified search pattern from the current directory using a value to determine whether to search subdirectories.
Parameters:
searchOption: One of the values of the System.IO.SearchOption enumeration that specifies whether the search operation should include only the current directory or should include all subdirectories.
path: The path to search.
searchPattern: The search string to match against the names of files in path. The parameter cannot end in two periods ("..") or contain two periods ("..") followed by System.IO.Path.DirectorySeparatorChar or System.IO.Path.AltDirectorySeparatorChar, nor can it contain any of the characters in System.IO.Path.InvalidPathChars.
Return Values:
A String array of directories matching the search pattern.
Exceptions:
System.IO.DirectoryNotFoundException: The specified path is invalid, such as being on an unmapped drive.
System.ArgumentNullException: path or searchPattern is null.
System.UnauthorizedAccessException: The caller does not have the required permission.
System.IO.IOException: path is a file name.
System.IO.PathTooLongException: The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
System.ArgumentException: path is a zero-length string, contains only white space, or contains one or more invalid characters as defined by System.IO.Path.InvalidPathChars.-or- searchPattern does not contain a valid pattern.
- Я никогда не понимал, почему они приходят ко мне чтобы умирать?
sebas<-@->mail.ru