Share via


CortanaActionableInsights.User Property

Definition

Gets the user associated with the current CortanaActionableInsights object.

public:
 property User ^ User { User ^ get(); };
User User();
/// [get: Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
User User();
public User User { get; }
public User User { [Windows.Foundation.Metadata.Deprecated("CortanaActionableInsights is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")] get; }
var user = cortanaActionableInsights.user;
Public ReadOnly Property User As User

Property Value

The User associated with the current CortanaActionableInsights object.

Might return null if the CortanaActionableInsights object was created with the GetDefault method.

Attributes

Windows requirements

App capabilities
cortanaSurface

Remarks

The CortanaActionableInsights class requires the following be added to the Package.appxmanifest:

  • To <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Under <Capabilities>
    • <rescap:capability name="cortanaSurface"/>

Applies to

See also