AudienceNameID class

AudienceNameID class

Represents a synopsis of information about an audience, such as the name and GUID, and whether the audience is still valid.


Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AudienceNameID

The AudienceNameID object is instantiated and used by the AudienceManager class to create array lists of audience information.

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);

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2016 Microsoft