Table of Contents

Method ExtractResourceSafe

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ExtractResourceSafe(string, string)

Extracts a resource from the specified URL and saves it to the given destination path. Returns true if the operation succeeds, otherwise false.

public static bool ExtractResourceSafe(string url, string destPath)

Parameters

url string

The URL of the resource to extract.

destPath string

The destination file path where the resource will be saved.

Returns

bool

True if the resource extraction and saving succeed, otherwise false.

Remarks

Uses StreamFromUrlOrDefault(string?, Func<Stream?>?) for the resource extraction.