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.

適用於

另請參閱