> ## 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.

# GetNewTicket

> ABBYY FlexiCapture API の GetNewTicket を使用して、セッションとステーション タイプに対応するライセンス チケットを取得します。戻り値は TicketInfo オブジェクトです。

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

ライセンスチケットを返します。

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

```
bool GetNewTicket( int sessionId, int stationType, out TicketInfo ticketInfo );
```

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

<table width="100%"><tbody><tr><td><p><strong>名前</strong></p></td><td><p><strong>型</strong></p></td><td><p><strong>説明</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>Application Server への接続のID</p></td></tr><tr><td><p>stationType</p></td><td><p>int</p></td><td><p>チケットの取得対象となるステーションの型です。使用可能な値については、<a href="/ja/flexi-capture/api/structures/t-workstation-type">WorkstationType</a> を参照してください。</p><p><strong>注: </strong> WT\_RemoteDataVerification および WT\_RemoteVerification ではなく、それぞれ WT\_Verification と WT\_Validation の値を使用してください。</p></td></tr></tbody></table>

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

| **型**                                                      | **説明**              |
| ---------------------------------------------------------- | ------------------- |
| bool                                                       | チケットが取得済みかどうかを示すフラグ |
| [TicketInfo](/ja/flexi-capture/api/structures/ticket-info) | ライセンス チケット          |
