ComponentOne Basic Library for UWP
C1.UWP Assembly / C1.Xaml Namespace / Extensions Class / ContainsFileAsync Method
Starting folder.
Relative path.

In This Topic
    ContainsFileAsync Method
    In This Topic
    Returns true if a file exists at a given path relative to the given folder.
    Syntax
    'Declaration
     
    Public Shared Function ContainsFileAsync( _
       ByVal folder As Windows.Storage.StorageFolder, _
       ByVal relativePath As System.String _
    ) As System.Threading.Tasks.Task(Of Boolean)
    public static System.Threading.Tasks.Task<bool> ContainsFileAsync( 
       Windows.Storage.StorageFolder folder,
       System.string relativePath
    )

    Parameters

    folder
    Starting folder.
    relativePath
    Relative path.

    Return Value

    True if file exists. False - otherwise.
    Remarks
    NOTE: Even if the files with the given name only match the resource key - it will return true. I.e. if relative path points to Logo.png, but there is only Logo.scale-100.png - the method will still return true.
    See Also