Share via


UserActivityAttribution Class

Definition

Provides graphical information about a user activity. Overrides information the system provides about the user activity.

public ref class UserActivityAttribution sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.UserActivities.IUserActivityAttributionFactory, 327680, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(327680, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserActivityAttribution final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.UserActivities.IUserActivityAttributionFactory), 327680, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(327680, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserActivityAttribution
function UserActivityAttribution(iconUri)
Public NotInheritable Class UserActivityAttribution
Inheritance
Object Platform::Object IInspectable UserActivityAttribution
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Constructors

UserActivityAttribution()

Create a UserActivityAttribution object.

UserActivityAttribution(Uri)

Create a UserActivityAttribution object with the specified icon image URI.

Properties

AddImageQuery

Get or set whether to allow Windows to append a query string to the image URI supplied from IconUri when retrieving the image. The query string includes information that can be used to choose the ideal image based on the DPI of the display, the high contrast setting, and the user's language.

AlternateText

Get or set the text that describes the icon.

IconUri

Get or set the Uniform Resource Identifier (URI) for the icon image.

Applies to