PhysicalFileSystem.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
public bool TryGetDirectoryContents(
string subpath,
out IEnumerable<IFileInfo> contents
)
public:
virtual bool TryGetDirectoryContents(
String^ subpath,
[OutAttribute] IEnumerable<IFileInfo^>^% contents
) sealed
abstract TryGetDirectoryContents :
subpath:string *
contents:IEnumerable<IFileInfo> byref -> bool
override TryGetDirectoryContents :
subpath:string *
contents:IEnumerable<IFileInfo> byref -> bool
Public Function TryGetDirectoryContents (
subpath As String,
<OutAttribute> ByRef contents As IEnumerable(Of IFileInfo)
) As Boolean
Parameters
subpath
Type: System.StringA path under the root directory
contents
Type: System.Collections.Generic.IEnumerable<IFileInfo>The discovered directories, if any
Return Value
Type: System.Boolean
True if a directory was discovered at the given path
Implements
IFileSystem.TryGetDirectoryContents(String, IEnumerable<IFileInfo>)
See Also
PhysicalFileSystem Class
Microsoft.Owin.FileSystems Namespace
Return to top