SessionSwitchEventArgs(SessionSwitchReason) 构造函数

定义

使用指定的会话更改事件类型标识符初始化 SessionSwitchEventArgs 类的新实例。Initializes a new instance of the SessionSwitchEventArgs class using the specified session change event type identifer.

public:
 SessionSwitchEventArgs(Microsoft::Win32::SessionSwitchReason reason);
public SessionSwitchEventArgs (Microsoft.Win32.SessionSwitchReason reason);
new Microsoft.Win32.SessionSwitchEventArgs : Microsoft.Win32.SessionSwitchReason -> Microsoft.Win32.SessionSwitchEventArgs
Public Sub New (reason As SessionSwitchReason)

参数

reason
SessionSwitchReason

SessionSwitchReason,它指示会话更改事件的类型。A SessionSwitchReason that indicates the type of session change event.

适用于

另请参阅