Returns an array of S3DirectoryInfos for the directories in this directory.
            
 Declaration Syntax
 Declaration Syntax| C# | 
public S3DirectoryInfo[] GetDirectories( string searchPattern, SearchOption searchOption )
 Parameters
 Parameters- searchPattern (String)
- The search string. The default pattern is "*", which returns all directories.
- searchOption (SearchOption)
- One of the enumeration values that specifies whether the search operation should include only the current directory or all subdirectories. The default value is TopDirectoryOnly.
 Return Value
 Return ValueAn array of directories that matches searchPattern and searchOption.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonS3Exception |