Share via


AudienceDuplicateNameException Class

Represents the exception thrown when a user tries to create or rename an audience to a name that already exists in the database.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

Thrown by the AudienceCollection object when it tries to create an audience by a name that already exists in the database, or when trying to rename an audience to a name that is already in use.

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

AudienceDuplicateNameException Members

Microsoft.Office.Server.Audience Namespace