다음을 통해 공유


AudienceArgumentException Class

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

Inheritance Hierarchy

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

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 AudienceArgumentException _
    Inherits AudienceException
'Usage
Dim instance As AudienceArgumentException
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AudienceArgumentException : AudienceException

Remarks

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.

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

AudienceArgumentException Members

Microsoft.Office.Server.Audience Namespace