Inserts a new element into the collection after the current element and advances the iterator to the new element.
virtual AcMapIE::ErrCode Add( const ACHAR* pszExpression, const ACHAR* pszTarget ) = 0;
Parameters |
Description |
pszExpression |
Input expression of the expression-target pair to add. |
pszTarget |
Input target of the expression-target pair to add. |
Returns AcMapIE::ErrCode kErr_OK if successful. Returns AcMapIE::ErrCode kErr_BadParams if either input string is NULL or empty. Returns AcMapIE::ErrCode kErr_BadFieldName if the input target is invalid. Returns AcMapIE::ErrCode kErr_Fail if the case-insensitive input target already exists in the collection.
The name of the target must be 255 or fewer characters long and can include the following symbols: a-z A-Z 0-9 . { } - _ . The target to which you are exporting may have stricter naming rules, however, so it is safest to restrict target names to alphanumeric, multi-byte, and underscore characters; in particular, avoid these characters: . { }.