Common Cases, Publication C++
Notifications with predefined attributes
Notifications with discretionary attributes
Common Cases, publication code C
 |
 |
Notifications with discretionary attributes
assigning values to discretionary attributes
Sometimes you may want to allow subscribers to develop content or relationships to groups beyond the limits of the predefined attributes. In such cases, create discretionary attributes.
To create a discretionary attribute, call the Notification class's AddDiscretionaryAttr method when you construct your notification:
n2.AddDiscretionaryAttr("Interest","Country Music");
The data type of our discretionary attribute, Interest, is PC_STRING.
Note: AddDiscretionaryAttr always references the attribute's name. However, the data type of the attribute may be any standard data type.
|