Share via


AudienceDuplicateNameException Class

The 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.

System.Object

    System.Exception

       System.ApplicationException

         Microsoft.SharePoint.Portal.Audience.AudienceException

            Microsoft.SharePoint.Portal.Audience.AudienceDuplicateNameException

Public Constructors

The following table shows the AudienceDuplicateNameException class constructors and provides a brief description of each.

Name Description
AudienceDuplicateNameException(string) Initializes an instance of the AudienceDuplicateNameException class with a specified error message.
AudienceDuplicateNameException(string, System.Exception) Initializes an instance of the AudienceDuplicateNameException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Thread Safety

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

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.

Requirements

Namespace: Microsoft.SharePoint.Portal.Audience

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security

AudienceException Class