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.StringThe path that identifies the directory
contents
Type: System.Collections.Generic.IEnumerable<IFileInfo>The contents if any
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