Partilhar via


AudienceWrongAccountNameFormatException Class

Represents the exception that is thrown when the wrong account name format is encountered in an audience rule.

Inheritance Hierarchy

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

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

Remarks

Thrown by the AudienceRuleComponent class when the format of the account name is incorrect. Account names may use either the Microsoft Windows user account format or a principle name format. If an audience rule uses one format in its operand, the value for that rule must use the same format.

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

AudienceWrongAccountNameFormatException Members

Microsoft.Office.Server.Audience Namespace