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

# FlexiCapture 12 SDK の ILicense::ExpirationDate メソッド

> FlexiCapture 12 SDK の License オブジェクトの ExpirationDate メソッドを使用して、ライセンスに有効期間の制限があるかどうかを確認し、ライセンスが失効する日付を取得します。

`ExpirationDate` メソッドは、ライセンスに絶対的または相対的な有効期間の制限が設定されている場合に、ライセンスが失効する日付を返します。

## 構文

```vb Visual Basic .NET theme={null}
Function ExpirationDate( _
  ByRef year  As Integer, _
  ByRef month As Integer, _
  ByRef day   As Integer _
) As Boolean
```

```cpp C++ theme={null}
HRESULT ExpirationDate(
  int*          year,
  int*          month,
  int*          day,
  VARIANT_BOOL* hasTimeLimitation
);
```

## パラメーター

| 名前 | 方向 | 説明 |
| - | - | - |
| `year` | out | 有効期限の年を受け取ります。ライセンスに有効期間の制限がない場合は 0 を受け取ります。 |
| `month` | out | 有効期限の月を受け取ります。ライセンスに有効期間の制限がない場合は 0 を受け取ります。 |
| `day` | out | 有効期限の日を受け取ります。ライセンスに有効期間の制限がない場合は 0 を受け取ります。 |
| `hasTimeLimitation` | out, retval | ライセンスに有効期間の制限があるかどうかを受け取ります。 |

## 戻り値

このメソッドに固有の戻り値はありません。[FlexiCapture 12 SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連トピック

* [`License`](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/license)
* [`IEngine::SetCurrentLicense`](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-setcurrentlicense)
