LoggerGetAutoSave


機能

データ収集後またはデータ収集中に自動保存の状態を取得します。

書式

Ret = LoggerGetAutoSave ( AppId , ExcelEnable , AutoSaveType , FolderPath )

引数

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

LoggerOpenApplicationで取得したアプリケーションIDを指定します。

ExcelEnable [ VB.NET: UShort ] [ C++:unsigned short * ] [ C#: out ushort ]

エクセル転送の有効・無効を格納するアドレスを指定します。

AutoSaveType [ VB.NET: UShort ] [ C++:unsigned short * ] [ C#: out ushort ]

自動保存の状態を格納するアドレスを指定します。

FolderPath  [ VB.NET:StringBuilder ] [ C++ : char * ] [ C#: out string]

対象のデータを保存するフォルダを格納するアドレスを指定します。

戻り値

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

定義

戻り値

[Dec]

内容

LOGGER_ERR_SUCCESS

0

正常終了

LOGGER_ERR_INVALID_ID

10010

無効なAppIDが指定されました。

その他のエラー(参照:エラーコード一覧)

初期値

特になし

説明

データ収集後またはデータ収集中に自動保存の設定状態を取得します。

使用例

自動保存の状態を取得します。

VB.NET

Dim Ret As Integer
Dim ExcelEnable As UShort

Dim AutosaveType As UShort
Dim FolderPath As New StringBuilder("", 256)

Ret = LoggerGetAutoSave(AppId, ExcelEnable, AutosaveType, FolderPath)

 

C++

long Ret;
unsigned short ExcelEnable;

unsigned short AutosaveType;

char FolderPath[255];

Ret = LoggerGetAutoSave(AppId, &ExcelEnable, &AutosaveType, &FolderPath[0]);

 

C#

int Ret;
ushort ExcelEnable;

ushort AutosaveType;

string FolderPath;

Ret = logger.GetAutoSave(AppId, out ExcelEnable, out AutosaveType, out FolderPath);

 

関連項目

LoggerSetAutoSave