AudienceExecutionException class

Represents the exception thrown when an error occurs when executing an audience operation, such as creating, removing, or updating an audience.


Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AudienceExecutionException : AudienceException

Thrown by members of the Audience, AudienceCollection, and AudienceSiteCollection classes if errors are encountered when accessing the database, such as when creating and deleting audiences. When a database error causes the error, the message string contains an error code from Microsoft SQL Server.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.