GetMembership Method

The GetMembership method of the Audience class gets an ArrayList of UserInfo objects that contain membership information for this audience.

Return Value

System.Collections.ArrayList List of UserInfo objects that contain membership information.

Exceptions

Exception Type Condition
AudienceInCompilation GetMembership was called while audience rules compiling.

Remarks

The GetMembership method may also throw an AudienceExecutionException exception containing Microsoft SQL Server errors, if a database error occurs during data retrieval.

Example

The following code example shows how to use the GetMembership method to retrieve audience membership data for a given PortalApplication object.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security

Microsoft.SharePoint.Portal.Topology Namespace | PortalApplication Class | UserInfo Class