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