输入加载项属性Enter add-on properties

提交外接程序时," 属性 " 页上的选项有助于确定外接程序在向客户提供时的行为。When submitting an add-on, the options on the Properties page help determine the behavior of your add-on when offered to customers.

产品类型Product type

首次创建加载项时,将选择你的产品类型。Your product type is selected when you first create the add-on. 你选择的产品类型将显示在此处,你无法更改它。The product type you selected is displayed here, but you can't change it.

提示

如果没有发布该加载项,并且需要选择不同的产品类型,则可以删除该提交并重新开始。If you haven't published the add-on, you can delete the submission and start again if you want to choose a different product type.

在此页面上看到的字段会有所不同,具体取决于加载项的产品类型。The fields you see on this page will vary, depending on the product type of your add-on.

产品生命周期Product lifetime

如果选择的产品类型为耐用品,此处将显示产品生命周期If you selected Durable for your product type, Product lifetime is shown here. 耐用型加载项的默认产品生命周期永久,这意味着加载项永不过期。The default Product lifetime for a durable add-on is Forever, which means the add-on never expires. 如果需要,你可以更改 产品生存期 ,使外接程序在设置的持续时间后过期 (具有1-365 天) 的选项。If you prefer, you can change the Product lifetime so that the add-on expires after a set duration (with options from 1-365 days).

数量Quantity

如果选择的产品类型为应用商店管理的易耗品,此处将显示数量If you selected Store-managed consumable for your product type, Quantity is shown here. 将需要输入一个 1 到 1000000 之间的数字。You'll need to enter a number between 1 and 1000000. 此数量将在客户获取你的加载项时授予他们,并且应用商店将在应用报告客户使用该加载项时跟踪平衡。This quantity will be granted to the customer when they acquire your add-on, and the Store will track the balance as the app reports the customer’s consumption of the add-on.

订阅期限Subscription period

如果选择的产品类型为订阅,此处将显示订阅期限If you selected Subscription for your product type, Subscription period is shown here. 选择一个选项以指定向客户收取订阅费用的频率。Choose an option to specify how frequently a customer will be charged for the subscription. 默认选项为 " 每月",但你也可以选择 3 个月6 个月每年24 个月The default option is Monthly, but you can also select 3 months, 6 months, Annually, or 24 months.

重要

加载项发布之后,将无法更改订阅期限选择。After your add-on is published, you can't change your Subscription period selection.

免费试用Free trial

如果选择的产品类型为订阅,此处还将显示免费试用If you selected Subscription for your product type, Free trial is also shown here. 默认选项为没有免费试用The default option is No free trial. 如果你愿意,可以让客户在设定的时间段(1 周1 个月)内免费使用加载项。If you prefer, you can let customers use the add-on for free for a set period of time (either 1 week or 1 month).

重要

加载项发布之后,将无法更改免费试用选择。After your add-on is published, you can't change your Free trial selection.

内容类型Content type

无论加载项的产品类型是什么,将需要指示所提供内容的类型。Regardless of your add-on's product type, you'll need to indicate the type of content you're offering. 对于大部分加载项,内容类型应为电子软件下载For most add-ons, the content type should be Electronic software download. 如果列表中的另一个选项可以更好地描述加载项(例如,如果要提供音乐下载或电子书),请改为选择该选项。If another option from the list describes your add-on better (for example, if you are offering a music download or an e-book), select that option instead.

以下是加载项内容类型的可能选项:These are the possible options for an add-on's content type:

  • 电子软件下载Electronic software download
  • 电子书Electronic books
  • 电子杂志单期Electronic magazine single issue
  • 电子报纸单期Electronic newspaper single issue
  • 音乐下载Music download
  • 音乐流Music streaming
  • 联机数据存储/服务Online data storage/services
  • 软件即服务Software as a service
  • 视频下载Video download
  • 视频流Video streaming

其他属性Additional properties

这些字段是所有类型的加载项的可选字段。These fields are optional for all types of add-ons.

关键字Keywords

可以选择为每个提交的加载项提供最多十个关键字,每个关键字最多 30 个字符。You have the option to provide up to ten keywords of up to 30 characters each for each add-on you submit. 然后,你的应用便可查询匹配这些字词的加载项。Your app can then query for add-ons that match these words. 你可以使用此功能在应用中生成可加载加载项的屏幕,而无需直接在应用的代码中指定产品 ID。This feature lets you build screens in your app that can load add-ons without you having to directly specify the product ID in your app's code. 然后,可以随时更改加载项关键字,而无需在应用中更改代码或重新提交应用。You can then change the add-on's keywords anytime, without having to make code changes in your app or submit the app again.

若要查询此字段,请使用 Windows.Services.Store 命名空间中的 StoreProduct.Keywords 属性。To query this field, use the StoreProduct.Keywords property in the Windows.Services.Store namespace. (或者,如果使用的是 Windows.ApplicationModel.Store 命名空间,则使用 ProductListing.Keywords 属性。)(Or, if you're using the Windows.ApplicationModel.Store namespace, use the ProductListing.Keywords property.)

备注

关键字不适用于面向 Windows 8 和 Windows 8.1 的程序包。Keywords are not available for use in packages targeting Windows 8 and Windows 8.1.

自定义开发人员数据Custom developer data

你可以在自定义开发人员数据字段(之前被称为标记)中输入最多 3000 个字符来为应用内产品提供额外的上下文。You can enter up to 3000 characters into the Custom developer data field (formerly called Tag) to provide extra context for your in-app product. 在大多数情况下,它采用的是 XML 字符串的形式,但是可以在此字段中输入需要的任何内容。Most often, this is in the form of an XML string, but you can enter anything you'd like in this field. 然后应用可以查询此字段以读取其内容(尽管应用无法编辑数据并将更改传回。)Your app can then query this field to read its content (although the app can't edit the data and pass the changes back.)

例如,假设你有一款游戏,并且你正在出售一个可帮助客户访问其他级别的加载项。For example, let’s say you have a game, and you’re selling an add-on which allows the customer to access additional levels. 通过使用自定义开发人员数据字段,当客户拥有该加载项时,应用可以进行查询以查看有哪些级别可用。Using the Custom developer data field, the app can query to see which levels are available when a customer owns this add-on. 可更新加载项自定义开发人员数据字段中的信息并发布该加载项的已更新提交来随时调整值(在本例中,即为包含的级别),而无需在应用中更改代码或重新提交应用。You could adjust the value at any time (in this case, the levels which are included), without having to make code changes in your app or submit the app again, by updating the info in the add-on's Custom developer data field and then publishing an updated submission for the add-on.

若要查询此字段,请使用 Windows.Services.Store 命名空间中的 StoreSku.CustomDeveloperData 属性。To query this field, use the StoreSku.CustomDeveloperData property in the Windows.Services.Store namespace. (或者,如果使用的是 Windows.ApplicationModel.Store 命名空间,则使用 ProductListing.Tag 属性。)(Or, if you're using the Windows.ApplicationModel.Store namespace, use the ProductListing.Tag property.)

备注

自定义开发人员数据字段不适用于面向 Windows 8 和 Windows 8.1 的程序包。The Custom developer data field is not available for use in packages targeting Windows 8 and Windows 8.1.