WstDirectory.GetDirectories Method (WstContext, String, String)

[This is internal Microsoft documentation - Do not distribute.]

Gets an array of directories matching the specified search pattern from the current directory.

Namespace: Microsoft.Webstore.WstClient
Assembly: ICL (in icl.dll)

Syntax

'Declaration

  Public Shared Function GetDirectories ( _
    context As WstContext, _
    path As String, _
    searchPattern As String _
) As String()
  public static string[] GetDirectories (
    WstContext context,
    string path,
    string searchPattern
)

Parameters

  • context
    The Webstore context for this operation.
  • 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 DirectorySeparatorChar or AltDirectorySeparatorChar, nor can it contain any of the characters in InvalidPathChars.

Return Value

A String array of directories matching the search pattern.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

WstDirectory Class
WstDirectory Members
Microsoft.Webstore.WstClient Namespace