Dela via


UserActivity(String) Constructor

Definition

Create a UserActivity with a specified activity ID

public:
 UserActivity(Platform::String ^ activityId);
 UserActivity(winrt::hstring const& activityId);
public UserActivity(string activityId);
function UserActivity(activityId)
Public Sub New (activityId As String)

Parameters

activityId
String

Platform::String

winrt::hstring

The ID for this activity.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to