LCSession の GetProperty<Type> メソッド

GetProperty<Type> メソッドは、セッションプロパティの値を特定のデータ型として返します。サポートされるデータ型は、Boolean、Currency、Datetime、Float、Int、Numeric、および Text です。

このメソッドでは LCSession.GetProperty と同様にセッションプロパティが取得されますが、フィールドオブジェクトは必要ありません。プロパティ値が指定したデータ型でない場合、データ変換が実行されます。

定義位置

LCSession クラス

構文

flag = lcSession. GetPropertyBoolean (propertyToken, default)

Set destCurrency = lcSession. GetPropertyCurrency (propertyToken)

Set destDatetime = lcSession. GetPropertyDatetime (propertyToken)

destFloat = lcSession. GetPropertyFloat (propertyToken)

destInt = lcSession. GetPropertyInt (propertyToken)

Set destNumeric = lcSession. GetPropertyNumeric (propertyToken)

Set destStream = lcSession. GetPropertyStream (propertyToken, streamFormat)

パラメータ

パラメータ

説明

propertyToken

セッションプロパティを識別するトークン。トークンの一覧については、付録 B を参照してください。

default

(GetPropertyBoolean のみ) プロパティを検索できない場合に返される値。デフォルト値は FALSE です。

streamFormat

(GetPropertyStream のみ) ストリームが返される前に変換されるストリーム形式。streamFormat を 0 に設定すると変換は実行されず、プロパティ値と同じ形式でストリーム値がコピーされます。

戻り値

説明

flag

(GetPropertyBoolean のみ) TRUE または FALSE の Boolean 値。プロパティが存在しない場合は、デフォルトが返されます。

dest<Type>

セッションプロパティの現在値。