Sm_PolicyApi_AddAttributeToAffiliate()
The function adds a new attribute to an affiliate.
casso126
The function adds a new attribute to an affiliate.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_AddAttributeToAffiliate (void*pSessionHandle,const Sm_PolicyApi_AffiliateAttr_t*pstructAffiliateAttr,const char*pszAffiliateOid);
Parameter | I/O | Description |
pSessionHandle
| I | A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pstructAffiliate
Attr
| I | A pointer to a completely filled-in affiliate attribute structure. |
pszAffiliateOid
| I | A null-terminated string containing the object identifier of an existing affiliate. |
Returns
- Sm_PolicyApi_SuccessThe affiliate attribute was created successfully
- Sm_PolicyApi_FailureThe affiliate attribute was not created successfully
- Sm_PolicyApi_InvalidHandleNo valid initialization before this call
- Sm_PolicyApi_NoSessionNo valid administrator session
- Sm_PolicyApi_NoPrivilegeThe administrator does not have the permission to create an affiliate attribute
- Sm_PolicyApi_InvalidOidThe affiliate OID was not found