PackageManager.GetPackageStubPreference(String) Method

Definition

Gets a value that indicates whether the specified app Package currently prefers to run as a full app or a stub app.

public:
 virtual PackageStubPreference GetPackageStubPreference(Platform::String ^ packageFamilyName) = GetPackageStubPreference;
/// [Windows.Foundation.Metadata.Overload("GetPackageStubPreference")]
PackageStubPreference GetPackageStubPreference(winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.Overload("GetPackageStubPreference")]
public PackageStubPreference GetPackageStubPreference(string packageFamilyName);
function getPackageStubPreference(packageFamilyName)
Public Function GetPackageStubPreference (packageFamilyName As String) As PackageStubPreference

Parameters

packageFamilyName
String

Platform::String

winrt::hstring

The family name of the app package to query.

Returns

A value that indicates whether the specified app package currently prefers to run as a full app or a stub app.

Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

Note

The ability for an app to run as a stub is currently available only to certain apps that are built by Microsoft.

Applies to

See also