Share via


AudienceCollection Class

The AudienceCollection class represents a collection of audiences for a portal site.

Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.Audience.AudienceCollection

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

Syntax

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

Remarks

This class can be used to enumerate individual audiences, as an entry point for creating an instance of the Audience class, or for removing an existing instance. It also contains general audience information, such as the last compilation timestamp.

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

AudienceCollection Members

Microsoft.Office.Server.Audience Namespace