SessionSwitchEventArgs 类

定义

SessionSwitch 事件提供数据。Provides data for the SessionSwitch event.

public ref class SessionSwitchEventArgs : EventArgs
public class SessionSwitchEventArgs : EventArgs
type SessionSwitchEventArgs = class
    inherit EventArgs
Public Class SessionSwitchEventArgs
Inherits EventArgs
继承
SessionSwitchEventArgs

注解

当当前用户发生更改时, 将引发事件。SessionSwitchA SessionSwitch event is raised when the current user changes.

构造函数

SessionSwitchEventArgs(SessionSwitchReason)

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

属性

Reason

获取指示会话更改事件类型的标识符。Gets an identifier that indicates the type of session change event.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅