Package.Dependencies Package.Dependencies Package.Dependencies Package.Dependencies Package.Dependencies Property

Definition

Gets the packages on which the current package depends.

public : IVectorView<Package> Dependencies { get; }
IVectorView<Package> Dependencies();
public IReadOnlyList<Package> Dependencies { get; }
Public ReadOnly Property Dependencies As IReadOnlyList<Package>
var iReadOnlyList = package.dependencies;

Property Value

IReadOnlyList<Package> IReadOnlyList<Package> IReadOnlyList<Package>

The packages on which the current package depends.

Examples

// Get the app package
Package currentPackage = Package.Current;

// Get a list of dependencies for the app package. This includes all resource packages, framework packages, and optional packages.
IReadOnlyList<Package> dependencies = currentPackage.Dependencies;

Remarks

Important

Although Package is supported in desktop apps, this member is supported only in UWP app. To access a package's dependencies from a desktop app, use GetPackageInfo.

See also