次の方法で共有


Siebel アダプターの SiebelParameter クラス

Data Provider for Siebel は、ADO.NET クライアントが特定のコマンドのパラメーターを指定できるようにする実装を提供DbParameterします。 クライアント プログラムは System.Data.Common.DbCommand 、Data Provider for Siebel のクラスのインスタンスを使用して、 クラスのインスタンスを System.Data.Common.DbParameter 取得できます。

//In this example, command is an instance of DbCommand  
DbParameter param = command.CreateParameter();  

または、次の方法を使用できます。


//Here command is an instance of SiebelCommand  
SiebelParameter param = (SiebelParameter) command.CreateParameter();                  
param.ParameterName = "@Time";  

SiebelParameter クラスは DbParameter から継承します。 名前空間 Microsoft.Data.SiebelClientに存在します。

サポートされているプロパティ

クラスはSiebelParameter、次DbParameterパブリック プロパティをサポートしています。

名前 Get/Set 説明
Dbtype 取得と設定 パラメーターのデータ型。 「 基本的な Siebel データ型」を参照してください
方向 取得と設定 サポートされている値を次に示します。

- ParameterDirection.Input

- ParameterDirection.Output

- ParameterDirection.InputOutput
IsNullable 取得と設定 プロパティはサポートされておらず、呼び出されると例外がスローされます。
ParameterName 取得と設定 Data Provider for Siebel は、パラメーター名を指定する ADO.NET クライアントに対してこのプロパティをサポートしています。
Value 取得と設定 Data Provider for Siebel は、パラメーター値を文字列として表します。

サポートされるデータ型

次の表は、Data Provider for Siebel がサポートする単純な Siebel フィールド型をまとめたものです。 詳細については、「 基本的な Siebel データ型」を参照してください。

Siebel フィールド型 .NET 型 XML スキーマの型
DTYPE_BOOL Boolean xsd:boolean
DTYPE_CURRENCY Decimal xsd:decimal
DTYPE_DATE DateTime xsd:dateTime
DTYPE_DATETIME DateTime xsd:dateTime
UTCDATETIME をDTYPE_する DateTime xsd:dateTime
DTYPE_ID String xsd:string
DTYPE_INTEGER Integer xsd:int
DTYPE_NOTE String xsd:string
DTYPE_NUMBER Decimal xsd:decimal
DTYPE_PHONE String xsd:string
DTYPE_TEXT String xsd:string
DTYPE_TIME DateTime xsd:dateTime

サポートされているメソッド

クラスは SiebelParameter 、 内 DbParameterの特別なメソッドをオーバーライドしません。

参照

Siebel アダプター ADO.NET インターフェイスを拡張する