AudienceArgumentException class

Represents the exception thrown when invalid data is supplied to the AudienceCollection and AudienceSiteCollection classes.


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 AudienceArgumentException : AudienceException

Thrown by the AudienceCollection and AudienceSiteCollection classes when information supplied for an audience is incorrect, such as an empty string for audience name or an index that is out of range to the enumerator.

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