AudienceNameID Class
Represents a synopsis of information about an audience, such as the name and GUID, and whether the audience is still valid.
Inheritance Hierarchy
System.Object
Microsoft.Office.Server.Audience.AudienceNameID
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class AudienceNameID
'Usage
Dim instance As AudienceNameID
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class AudienceNameID
Remarks
The AudienceNameID object is instantiated and used by the AudienceManager class to create array lists of audience information.
Examples
The following code example shows how to use the AudienceManager object to populate a list of AudienceNameID objects.
AudienceManager AudMgr = new AudienceManager();
AudienceManager.GetAudienceNames(ArrayList AudienceIDList);
Dim AudMgr As New AudienceManager()
AudienceManager.GetAudienceNames(ArrayList AudienceIDList)
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.