共用方式為


CortanaActionableInsights.User 屬性

定義

取得與目前 CortanaActionableInsights 對象相關聯的使用者。

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

屬性值

與目前 CortanaActionableInsights 對象相關聯的使用者。

如果使用 GetDefault 方法建立 CortanaActionableInsights 物件,可能會傳回 null

屬性

Windows 需求

應用程式功能
cortanaSurface

備註

CortanaActionableInsights 類別需要將下列專案新增至 Package.appxmanifest:

  • 至 <套件>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 在 [功能] 下<>
    • <rescap:capability name="cortanaSurface"/>

適用於

另請參閱