Share via


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.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class AudienceNameID
'Usage
Dim instance As AudienceNameID
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.

See also

Reference

AudienceNameID members

Microsoft.Office.Server.Audience namespace