ProGet SDK Reference
Version:

OpenPackageAsync(PackageStorePackageId packageId) Method

Returns a stream backed by the specified package if it exists; otherwise returns null (Nothing in Visual Basic).

Syntax

public virtual Task<System.IO.Stream> OpenPackageAsync(PackageStorePackageId packageId)

Parameters

packageId
Type: PackageStorePackageId

The ID of the package.

Returns

Stream backed by the specified package if it exists; otherwise null (Nothing in Visual Basic).

Exceptions

System.ArgumentNullException

packageId is null (Nothing in Visual Basic).