共用方式為


AudienceNameDescriptionLengthException Class

Represents an exception that is thrown if the length of the audience name exceeds 50 characters or if the description exceeds 254 characters.

Inheritance Hierarchy

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

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Class AudienceNameDescriptionLengthException _
    Inherits AudienceException
'Usage
Dim instance As AudienceNameDescriptionLengthException
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public class AudienceNameDescriptionLengthException : AudienceException

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

AudienceNameDescriptionLengthException Members

Microsoft.Office.Server.Audience Namespace