Audience Class
The Audience class represents an audience on the portal site. It retrieves and updates audience information.
System.Object
Microsoft.SharePoint.Portal.Audience.Audience
Public Methods
The following table shows the methods of the Audience class and a brief description of each.
| Name | Description |
|---|---|
| Commit | Commits changes to audience data to the database. |
| GetMembership | Gets an ArrayList of UserInfo objects that contain membership information for this audience. |
| IsMember(String) | Determines whether a user is member of this audience. IsMember(String)returns true if the user is a member; otherwise, false |
| ReloadMembership | Causes Microsoft Office SharePoint Portal Server 2003 2003 to reload the membership information for this audience. |
Public Properties
The following table shows the properties of the Audience class, the data type of each property, and a brief description of each.
| Name | Data Type | Description |
|---|---|---|
| AudienceDescription | String | Gets the description for this audience. |
| AudienceID | System.Guid | Gets the globally unique identifier (GUID) for this audience. |
| AudienceName | String | Gets and sets the name of this audience. |
| AudienceRules | System.Collections.ArrayList | Gets a list of rules for this audience. |
| AudienceSite | String | Gets the site URL for this audience. |
| GroupOperation | Microsoft.SharePoint.Portal.Audience.AudienceGroupOperation | Gets a member of the AudienceGroupOperation enumeration that indicates the group operation that applies to this audience. |
| LastCompilation | System.DateTime | Gets the date the rules for this audience were last compiled. |
| LastError | String | Gets the last error message that occurred during rule compilation. |
| LastRuleUpate | System.DateTime | Gets the date the rules for this audience were last updated. |
| MemberShipCount | Int32 | Gets the membership count for this audience. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Requirements
Namespace: Microsoft.SharePoint.Portal.Audience
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security