PhysicalFileSystem.TryGetFileInfo Method (String, IFileInfo)
Locate a file at the given path by directly mapping path segments to physical directories.
Namespace: Microsoft.Owin.FileSystems
Assembly: Microsoft.Owin.FileSystems (in Microsoft.Owin.FileSystems.dll)
Syntax
public bool TryGetFileInfo(
string subpath,
out IFileInfo fileInfo
)
public:
virtual bool TryGetFileInfo(
String^ subpath,
[OutAttribute] IFileInfo^% fileInfo
) sealed
abstract TryGetFileInfo :
subpath:string *
fileInfo:IFileInfo byref -> bool
override TryGetFileInfo :
subpath:string *
fileInfo:IFileInfo byref -> bool
Public Function TryGetFileInfo (
subpath As String,
<OutAttribute> ByRef fileInfo As IFileInfo
) As Boolean
Parameters
subpath
Type: System.StringA path under the root directory
fileInfo
Type: Microsoft.Owin.FileSystems.IFileInfoThe discovered file, if any
Return Value
Type: System.Boolean
True if a file was discovered at the given path
Implements
IFileSystem.TryGetFileInfo(String, IFileInfo)
See Also
PhysicalFileSystem Class
Microsoft.Owin.FileSystems Namespace
Return to top