共用方式為


AudienceExecutionException Class

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

Inheritance Hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.Office.Server.Audience.AudienceException
        Microsoft.Office.Server.Audience.AudienceExecutionException

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class AudienceExecutionException _
    Inherits AudienceException
'Usage
Dim instance As AudienceExecutionException
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AudienceExecutionException : AudienceException

Remarks

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.

Thread Safety

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

See Also

Reference

AudienceExecutionException Members

Microsoft.Office.Server.Audience Namespace