AttributesHave Method (IMConfig)
name of the attribute
"0" means that the attribute does not exist.
"1" means that the attribute exists.
value of the attribute if it exists or default value in other case
Indicates whether the attribute is existed.
Syntax
Sub AttributesHave( _
   ByVal _bsName As String, _
   ByRef _pbHave As Integer, _
   ByRef _pbsValueOrDefault As String _
) 
void AttributesHave( 
   string _bsName,
   out int _pbHave,
   out string _pbsValueOrDefault
)
procedure AttributesHave( 
    _bsName: String;
   Out  _pbHave: Integer;
   Out  _pbsValueOrDefault: String
); 
void AttributesHave( 
   BSTR* _bsName,
   [PARAMFLAG::Out] int _pbHave,
   [PARAMFLAG::Out] BSTR* _pbsValueOrDefault
) 

Parameters

_bsName
name of the attribute
_pbHave
"0" means that the attribute does not exist.
"1" means that the attribute exists.
_pbsValueOrDefault
value of the attribute if it exists or default value in other case
Example
Dim myExist As Integer
Dim myValue As String
myAttributes.AttributesHave("pos", myExist, myValue)
int myExist;
string myValue;
myAttributes.AttributesHave("pos", out myExist, out myValue);
var
myExist: integer;
myValue: string;
begin
m_pAttributes.AttributesHave('pos', myExist, myValue);
end;
See Also

Reference

IMConfig Interface
IMConfig Members