PackageManager.GetPackageStubPreference(String) 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 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.