IgetFloatAttribute()

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

構文

float IgetFloatAttribute(string attributeName);
 

パラメーター

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

戻り値

属性の float 値。

例外

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

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

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

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

// Call the Float method and get the attribute
 float floatValue = 0.0;
 String floatAttributeName = "Height";
 floatValue = exampleBusObj.IgetFloatAttribute(floatAttributeName);
 

Copyright IBM Corp. 2004