共用方式為


UserDeviceAssociationChangedEventArgs 類別

定義

包含 UserDeviceAssociationChanged 事件的相關資訊。

public ref class UserDeviceAssociationChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserDeviceAssociationChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserDeviceAssociationChangedEventArgs
Public NotInheritable Class UserDeviceAssociationChangedEventArgs
繼承
Object Platform::Object IInspectable UserDeviceAssociationChangedEventArgs
屬性

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

屬性

DeviceId

取得相關聯裝置的識別碼。

NewUser

取得與裝置相關聯的新使用者。

OldUser

取得先前與裝置相關聯的舊使用者。

適用於