StoreConfiguration.PinToDesktop(String) Method

Definition

Pins the specified app to the desktop for the all users on the current device.

public:
 static void PinToDesktop(Platform::String ^ appPackageFamilyName);
 static void PinToDesktop(winrt::hstring const& appPackageFamilyName);
public static void PinToDesktop(string appPackageFamilyName);
function pinToDesktop(appPackageFamilyName)
Public Shared Sub PinToDesktop (appPackageFamilyName As String)

Parameters

appPackageFamilyName
String

Platform::String

winrt::hstring

The package family name of the app to pin to the desktop.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to