Share via


IFileSystem.TryGetDirectoryContents Method (String, IEnumerable<IFileInfo>)

 

Enumerate a directory at the given path, if any

Namespace:   Microsoft.Owin.FileSystems
Assembly:  Microsoft.Owin.FileSystems (in Microsoft.Owin.FileSystems.dll)

Syntax

bool TryGetDirectoryContents(
    string subpath,
    out IEnumerable<IFileInfo> contents
)
bool TryGetDirectoryContents(
    String^ subpath,
    [OutAttribute] IEnumerable<IFileInfo^>^% contents
)
abstract TryGetDirectoryContents : 
        subpath:string *
        contents:IEnumerable<IFileInfo> byref -> bool
Function TryGetDirectoryContents (
    subpath As String,
    <OutAttribute> ByRef contents As IEnumerable(Of IFileInfo)
) As Boolean

Parameters

  • subpath
    Type: System.String

    The path that identifies the directory

Return Value

Type: System.Boolean

True if a directory was located at the given path

See Also

IFileSystem Interface
Microsoft.Owin.FileSystems Namespace

Return to top