AudienceWrongAccountNameFormatException Class

The AudienceWrongAccountNameFormatException class represents the exception that is thrown when the wrong account name format is encountered in an audience rule.

System.Object

    System.Exception

       System.ApplicationException

         Microsoft.SharePoint.Portal.Audience.AudienceException

            Microsoft.SharePoint.Portal.Audience.AudienceWrongAccountNameFormatException

Public Constructors

The following table shows the AudienceWrongAccountNameFormatException class constructors and provides a brief description of each.

Name Description
AudienceWrongAccountNameFormatException(String) Initializes an instance of the AudienceWrongAccountNameFormatException class with a specified error message.
AudienceWrongAccountNameFormatException(String, System.Exception) Initializes an instance of the AudienceWrongAccountNameFormatException class with a specified error message and provides a reference to the inner exception that is the cause of this exception.

Thread Safety

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

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.

Requirements

Namespace: Microsoft.SharePoint.Portal.Audience

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security

AudienceException Class