> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetSessionInfo

> ABBYY FlexiCapture Web Services API の GetSessionInfo メソッドは、指定したセッションについて、ユーザー名、コンピューター名、ユーザーロールの種類、およびユーザー ID を返します。

<div id="what-it-does">
  ## 機能
</div>

セッション情報を取得します。

<div id="definition">
  ## 定義
</div>

```
int GetSessionInfo( int sessionId, out string userName, out string computerName, out int roleType );
```

<div id="parameters">
  ## パラメーター
</div>

| **Name**     | **型**      | **説明**                                                                                    |
| ------------ | ---------- | ----------------------------------------------------------------------------------------- |
| sessionId    | int        | 情報を取得する対象のセッションの ID                                                                       |
| userName     | out string | ユーザー名                                                                                     |
| computerName | out string | ユーザーのコンピューター名                                                                             |
| roleType     | out int    | ユーザーロールの種類。取り得る値については [RoleType](/ja/flexi-capture/api/structures/t-role-type) を参照してください。 |

<div id="returned-value">
  ## 戻り値
</div>

| **型** | **説明** |
| ----- | ------ |
| int   | ユーザーID |
