IFileSystem.TryGetDirectoryContents Method
Gets the file contents from the given path.
Namespace: Microsoft.Owin.FileSystems
Assembly: Microsoft.Owin.FileSystems (in Microsoft.Owin.FileSystems.dll)
Syntax
'Declaration
Function TryGetDirectoryContents ( _
subpath As String, _
<OutAttribute> ByRef contents As IEnumerable(Of IFileInfo) _
) As Boolean
'Usage
Dim instance As IFileSystem
Dim subpath As String
Dim contents As IEnumerable(Of IFileInfo)
Dim returnValue As Boolean
returnValue = instance.TryGetDirectoryContents(subpath, _
contents)
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 : String,
contents : IEnumerable<IFileInfo>
) : boolean
Parameters
- subpath
Type: System.String
The path where to get the file contents.
- contents
Type: System.Collections.Generic.IEnumerable<IFileInfo>%
The file contents to get.
Return Value
Type: System.Boolean
true if the path contains the file; otherwise, false.