AudienceLoader.GetUserAudienceIDs Method
Returns the current user's audience IDs or names from the cache.
Namespace: Microsoft.Office.Server.WebControls
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function GetUserAudienceIDs ( _
needAudienceName As Boolean _
) As ArrayList
'Usage
Dim instance As AudienceLoader
Dim needAudienceName As Boolean
Dim returnValue As ArrayList
returnValue = instance.GetUserAudienceIDs(needAudienceName)
public ArrayList GetUserAudienceIDs(
bool needAudienceName
)
Parameters
needAudienceName
Type: System.BooleanThe Boolean object that specifies whether audience name or ID should be retrieved in the array.
Return Value
Type: System.Collections.ArrayList
The ArrayList object that contains the current user's audience IDs or names.
Remarks
This method retrieves the current user's audience IDs from the cache and may include distribution list, SharePoint group, and global rules-based audience IDs.