AudienceWrongAccountNameFormatException class
Collapse the table of content
Expand the table of content

AudienceWrongAccountNameFormatException class

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


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

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.

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