IgetIntAttribute()

属性の int 値を取得します。

構文

long IgetIntAttribute(string attributeName);
 

パラメーター

attributeName
整数値を取得する属性の名前。

戻り値

属性の整数値を保持する long 値。

例外

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

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

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

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

// Call the int method and get the attribute
 int intValue = 1;
 String intAttributeName = "priority";
 intValue = exampleBusObj.IgetIntAttribute(intAttributeName);
 

Copyright IBM Corp. 2004