共用方式為


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.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

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

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