Partilhar via


AudienceCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of audiences for a portal site.

The AudienceCollection type exposes the following members.

Properties

  Name Description
Public property AudienceCompiledSofar Contains the progress for Audience rule compilation as the number of audiences for which rules are compiled since compilation started.
Public property AudienceRuleChangeSinceLastCompile Gets the number of audience rules that changed since the last compilation.
Public property CompileInProgress Gets a flag that indicates whether rule compilation is in progress.
Public property Count Gets the number of audiences in the collection.
Public property IsSynchronized Gets a Boolean value indicating whether access to the AudienceCollection is synchronized (thread safe).
Public property Item[Guid] Gets the Audience object with the specified globally unique identifier (GUID) from the collection.
Public property Item[Int32] Gets the Audience object with the specified index from the collection.
Public property Item[String] Gets the Audience object with the specified name from the collection.
Public property LastCompileError Contains the last error to occur during rules compilation.
Public property LastCompileFinishTime Gets the date and time when the last rules compilation completed.
Public property LastCompileStartTime Gets the date and time when the last rules compilation started.
Public property MembershipCouldBeInvalid Gets a flag that indicates that audience membership might be out of date.
Public property SyncRoot Returns the object that can be used to synchronize access to this collection.

Top

Methods

  Name Description
Public method AudienceExist(Guid) Indicates whether the audience with the specified globally unique identifier (GUID) exists for the current site.
Public method AudienceExist(String) Checks for the existence of an Audience object with the specified name.
Public method CopyTo Copies the elements of the AudienceCollection to an array, starting at a specified index.
Public method Create(String, String) Creates an instance of the Audience object.
Public method Create(String, String, AudienceGroupOperation) Creates an instance of the Audience object.
Public method Create(String, String, String, AudienceGroupOperation) Validates the input parameters and creates an instance of the Audience object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the AudienceCollection object.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Guid) Removes the Audience object with the specified globally unique identifier (GUID) from the collection.
Public method Remove(String) Removes the audience with the specified name from the collection.
Public method ToString (Inherited from Object.)

Top

See Also

Reference

AudienceCollection Class

Microsoft.Office.Server.Audience Namespace