PackageManager.SetPackageStubPreference(String, PackageStubPreference) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.