ProGet SDK Reference
Version:

OpenReadAsync(string path) Method

Opens an existing file in the package store and returns a readable stream.

Syntax

protected abstract Task<System.IO.Stream> OpenReadAsync(string path)

Parameters

path
Type: string

The path of the file to open.

Returns

Readable stream backed by the specified file if it exists; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

path is null (Nothing in Visual Basic) or empty.