Share via


PhysicalFileSystem.TryGetFileInfo Method

Gets the file information from the given path.

Namespace:  Microsoft.Owin.FileSystems
Assembly:  Microsoft.Owin.FileSystems (in Microsoft.Owin.FileSystems.dll)

Syntax

'Declaration
Public Function TryGetFileInfo ( _
    subpath As String, _
    <OutAttribute> ByRef fileInfo As IFileInfo _
) As Boolean
'Usage
Dim instance As PhysicalFileSystem 
Dim subpath As String 
Dim fileInfo As IFileInfo 
Dim returnValue As Boolean 

returnValue = instance.TryGetFileInfo(subpath, _
    fileInfo)
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 final function TryGetFileInfo(
    subpath : String, 
    fileInfo : IFileInfo
) : boolean

Parameters

  • subpath
    Type: System.String
    The path where to get the file information.

Return Value

Type: System.Boolean
true if the file information exist; otherwise, false.

Implements

IFileSystem.TryGetFileInfo(String, IFileInfo%)

See Also

Reference

PhysicalFileSystem Class

Microsoft.Owin.FileSystems Namespace