IisKey()

属性がキーであるかどうかを判別します。

構文

boolean IisKey(string attributeName);
 

パラメーター

attributeName
キーであるかどうか検査される属性の名前。

戻り値

メソッドは、属性がキーである場合には true を戻します。それ以外の場合には、false を戻します。

例外

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

// See if attribute is key
 boolean isKey = false;
 String busAttribute = "AttributeName";
 isKey = exampleBusObj.IisKey(busAttribute);
 if (isKey)
      ...
 

Copyright IBM Corp. 2004