PackageManager.SetPackageStubPreference(String, PackageStubPreference) Method

Definition

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

public:
 virtual void SetPackageStubPreference(Platform::String ^ packageFamilyName, PackageStubPreference useStub) = SetPackageStubPreference;
/// [Windows.Foundation.Metadata.Overload("SetPackageStubPreference")]
void SetPackageStubPreference(winrt::hstring const& packageFamilyName, PackageStubPreference const& useStub);
[Windows.Foundation.Metadata.Overload("SetPackageStubPreference")]
public void SetPackageStubPreference(string packageFamilyName, PackageStubPreference useStub);
function setPackageStubPreference(packageFamilyName, useStub)
Public Sub SetPackageStubPreference (packageFamilyName As String, useStub As PackageStubPreference)

Parameters

packageFamilyName
String

Platform::String

winrt::hstring

The family name of the app package to configure.

useStub
PackageStubPreference

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