MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / SetAppUserModelId

Method SetAppUserModelId

src/Squirrel/ShellFile.cs:914–920  ·  view source on GitHub ↗

Sets the appUserModelId

(string appId)

Source from the content-addressed store, hash-verified

912 /// Sets the appUserModelId
913 /// </summary>
914 public void SetAppUserModelId(string appId)
915 {
916 var propStore = (IPropertyStore)linkW;
917 var pkey = PROPERTYKEY.PKEY_AppUserModel_ID;
918 var str = PropVariant.FromString (appId);
919 propStore.SetValue(ref pkey, ref str);
920 }
921
922 /// <summary>
923 /// Sets the ToastActivatorCLSID

Callers 3

Calls 2

FromStringMethod · 0.80
SetValueMethod · 0.45

Tested by 1