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.


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


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


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


Platforms: Microsoft Windows Server 2003

Security: Code Access Security

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