IgetDateAttribute()

日付属性の値を取得します。

構文

string IgetDateAttribute(string attributeName);
 

パラメーター

attributeName
値を取得する日付カーディナリティー属性の名前。

戻り値

日付属性の値が格納されている string

例外

IAttributeNotSetException
属性値が設定されていない場合にスローされます。

IInvalidAttributeNameException
属性名が無効な場合にスローされます。

IInvalidAttributeTypeException
属性が日付型でない場合にスローされます。

IAttributeBlankException
属性にブランク値がある場合にスローされます。

//call the Date method and get the attribute
 String dateAttributeName = "DateOfBirth";
 String aDate;
 aDate = exampleBusObj.IgetDateAttribute(dateAttributeName);
 

Copyright IBM Corp. 2004