AudienceEditor Class

Provides a text control along with the audience picker used to enter and resolve audience names.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebControls.EntityEditor
        Microsoft.SharePoint.WebControls.EntityEditorWithPicker
          Microsoft.Office.Server.WebControls.AudienceEditor

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

Syntax

'Declaration
<ValidationPropertyAttribute("Audiences")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class AudienceEditor _
    Inherits EntityEditorWithPicker _
    Implements IToolPaneControl
'Usage
Dim instance As AudienceEditor
[ValidationPropertyAttribute("Audiences")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class AudienceEditor : EntityEditorWithPicker, 
    IToolPaneControl

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

AudienceEditor Members

Microsoft.Office.Server.WebControls Namespace