Share via


AudienceManager.AudienceLeftContentList Property

Gets an ArrayList object of AudienceLeftContent objects.

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

Syntax

'Declaration
Public ReadOnly Property AudienceLeftContentList As ArrayList
    Get
'Usage
Dim instance As AudienceManager
Dim value As ArrayList

value = instance.AudienceLeftContentList
public ArrayList AudienceLeftContentList { get; }

Property Value

Type: System.Collections.ArrayList
System.Collections.ArrayList object that represents a list of AudienceLeftContent objects associated with the current audience.

Remarks

The AudienceLeftContentList property is read-only.

Examples

The following code example shows how to use the AudienceLeftContentList property to retrieve and list operand items associated with an audience.

AudienceManager AudMgr = new AudienceManager();
ArrayList LeftContentList;
LeftContentList = AudMgr.AudienceLeftContentList;

for (int list=0; list < LeftContentList.Count; list++)
{
    System.Console.WriteLine("{0}", list);
    System.Console.WriteLine("  Name" + ((AudienceLeftContent)LeftContentList[list]).Name);
    System.Console.WriteLine("  DisplayName" + ((AudienceLeftContent)LeftContentList[list]).DisplayName);
    System.Console.WriteLine("  DataType" + ((AudienceLeftContent)LeftContentList[list]).DataType);
    System.Console.WriteLine("  DataLength" + ((AudienceLeftContent)LeftContentList[list]).DataLength);
    System.Console.WriteLine("  bProperty" + ((AudienceLeftContent)LeftContentList[list]).bProperty);
}
System.Console.WriteLine("End");
Dim AudMgr As New AudienceManager()
Dim LeftContentList As ArrayList
LeftContentList = AudMgr.AudienceLeftContentList

For list As Integer = 0 To LeftContentList.Count - 1
    System.Console.WriteLine("{0}", list)
    System.Console.WriteLine("  Name" & (CType(LeftContentList(list), AudienceLeftContent)).Name)
    System.Console.WriteLine("  DisplayName" & (CType(LeftContentList(list), AudienceLeftContent)).DisplayName)
    System.Console.WriteLine("  DataType" & (CType(LeftContentList(list), AudienceLeftContent)).DataType)
    System.Console.WriteLine("  DataLength" & (CType(LeftContentList(list), AudienceLeftContent)).DataLength)
    System.Console.WriteLine("  bProperty" & (CType(LeftContentList(list), AudienceLeftContent)).bProperty)
Next list
System.Console.WriteLine("End")

See Also

Reference

AudienceManager Class

AudienceManager Members

Microsoft.Office.Server.Audience Namespace