Dela via


UserActivityState Enum

Definition

Defines the states of a UserActivity.

public enum class UserActivityState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
enum class UserActivityState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public enum UserActivityState
var value = Windows.ApplicationModel.UserActivities.UserActivityState.new
Public Enum UserActivityState
Inheritance
UserActivityState
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)

Fields

Name Value Description
New 0

The UserActivity has not yet been published.

Published 1

The UserActivity has been published on this (or another) device.

Remarks

Whenever the app modifies a property of the UserActivity, you must call UserActivity.SaveAsync() to publish the change and push the updated activity to other devices.

Applies to

See also