SessionEndingEventArgs(SessionEndReasons) 构造函数

定义

使用指定值初始化类的新实例 SessionEndingEventArgs ,该值指示发生的会话关闭事件的类型。

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

参数

reason
SessionEndReasons

其中 SessionEndReasons 一个指定会话结束方式。

适用于