StoreConfiguration.PinToDesktopForUser(User, 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.
Pins the specified app to the desktop for the specified user on the current device.
public:
static void PinToDesktopForUser(User ^ user, Platform::String ^ appPackageFamilyName);
static void PinToDesktopForUser(User const& user, winrt::hstring const& appPackageFamilyName);
public static void PinToDesktopForUser(User user, string appPackageFamilyName);
function pinToDesktopForUser(user, appPackageFamilyName)
Public Shared Sub PinToDesktopForUser (user As User, appPackageFamilyName As String)
Parameters
- user
- User
The user for which the app will be pinned to the desktop.
- 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)
|