The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Directory.GetDirectories Method (String, String)
Silverlight
This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
Assembly: mscorlib (in mscorlib.dll)
[SECURITY CRITICAL]
Namespace:
System.IOGets an array of directories (including their paths) that match the specified search pattern in the current directory.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public static string[] GetDirectories( string path, string searchPattern )
Parameters
- path
- Type: System.String
The path to search.
- searchPattern
- Type: System.String
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 DirectorySeparatorChar or AltDirectorySeparatorChar.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.