AudienceLoader.GetUserAudienceIDs Method
Returns the current user's audience IDs or names from the cache.
Namespace: Microsoft.Office.Server.WebControls
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.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.Boolean
Specifies whether audience name or ID should be returned in the array.
Return Value
Type: System.Collections.ArrayList
An array containing the current user's audience IDs or names.