Process.SessionId Свойство
Определение
Получает идентификатор сеанса служб терминалов для связанного процесса.Gets the Terminal Services session identifier for the associated process.
public:
property int SessionId { int get(); };
public int SessionId { get; }
[System.MonoNotSupported("")]
public int SessionId { get; }
member this.SessionId : int
[<System.MonoNotSupported("")>]
member this.SessionId : int
Public ReadOnly Property SessionId As Integer
Значение свойства
Идентификатор сеанса служба терминалов для связанного процесса.The Terminal Services session identifier for the associated process.
- Атрибуты
-
MonoNotSupportedAttribute
Исключения
С этим процессом никакие сеансы не связаны.There is no session associated with this process.
С этим идентификатором сеанса не связаны никакие процессы.There is no process associated with this session identifier.
-или--or-
На этом компьютере нет связанного процесса.The associated process is not on this machine.
Комментарии
SessionIdСвойство определяет сеанс, в котором приложение выполняется в данный момент.The SessionId property identifies the session in which the application is currently running.