AudienceRuleRightContentException class

Represents the exception thrown by the AudienceRuleComponent class when an error in encountered in the rule definition.

Inheritance hierarchy

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

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

Remarks

Thrown by members of the Audience class when the rule definition is incorrect, for example, if the value for the rule is empty, or if the specified value does not match the data type of the operand. Ensure that the correct content is defined in the value of the rule.

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

AudienceRuleRightContentException members

Microsoft.Office.Server.Audience namespace