Commit Method

The Commit method of the Audience class saves all changes to audience data in the database, such as updated name, description, and operator list.

Exceptions

Exception Type Condition
AudienceDuplicateNameException The specified audience name duplicated a name already in the database.
AudienceExecutionException Thrown when the Commit method encounters data errors, inconsistencies or invalid rule definitions when saving data to the database.
AudienceInCompilation Commit was called for an audience that is currently compiling.
AudienceOperatorException An audience rule contains an invalid operator.
AudienceRuleRightContentException An audience rule contains an invalid value for the value portion of the rules definition.
AudienceRuleLeftContentException An audience rule contains an invalid value for the operand portion of the rules definition.

Remarks

The AudienceRules property must be set before calling the Commit method. Setting AudienceRules indicates that the rule has been changed since the last commit.

Remarks

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security