简体   繁体   中英

Windows Phone application link to the store

I want to add "Share App" button in About page of my application. To do this I need application link in marketplace.

  ShareLinkTask shl = new ShareLinkTask();
  shl.LinkUri = new Uri(URI_OF_APP_IN_MARKETPLACE, UriKind.Absolute);
  shl.Message = "Message";
  shl.Title = "Title";
  shl.Show();

Now this application is published already in the marketplace. I can get link from here also from dev.windowsphone.com also.

在此输入图像描述

I can use this link also. But will be it changed after updating application? Or is there anyway to get link from code behind?

Thanks.

No, it'll stay the same, even for future versions.

You can always use the appId and MarketplaceDetailTask to get more details about your app. Or even MarketplaceSearchTask , depending on what you want to do.

Providing that link alone should be enough for your purpose.

Sample

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM