共用方式為


AudienceManager.AudienceOperatorList Property

Gets an ArrayList object that contains references to AudienceOperator objects.

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

Syntax

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

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

Property Value

Type: System.Collections.ArrayList
System.Collections.ArrayList object that represents a list of AudienceOperator objects associated with this audience.

Remarks

The AudienceOperator property is read-only.

Examples

The following code example shows how to retrieve and list operators associated with this audience.

AudienceManager AudMgr = new AudienceManager();
ArrayList OperatorList;
AudienceOperator Operator;

OperatorList = AudienceManagerObj.AudienceOperatorList;

for (int list=0; list < OperatorList.Count; list++)
{
    System.Console.WriteLine("{0}", list);
    Operator = (AudienceOperator)OperatorList[list];
    System.Console.WriteLine("  OperatorDisplayName " + Operator.OperatorDisplayName);
    System.Console.WriteLine("  Operator " + Operator.Operator);
    System.Console.WriteLine("  bNotOperator " + Operator.bNotOperator);
    System.Console.WriteLine("  bGroupOperator " + Operator.bGroupOperator);
}
System.Console.WriteLine("End");
Dim AudMgr As New AudienceManager()
Dim OperatorList As ArrayList
Dim [Operator] As AudienceOperator

OperatorList = AudienceManagerObj.AudienceOperatorList

For list As Integer = 0 To OperatorList.Count - 1
    System.Console.WriteLine("{0}", list)
    [Operator] = CType(OperatorList(list), AudienceOperator)
    System.Console.WriteLine("  OperatorDisplayName " & [Operator].OperatorDisplayName)
    System.Console.WriteLine("  Operator " & [Operator].Operator)
    System.Console.WriteLine("  bNotOperator " & [Operator].bNotOperator)
    System.Console.WriteLine("  bGroupOperator " & [Operator].bGroupOperator)
Next list
System.Console.WriteLine("End")

See Also

Reference

AudienceManager Class

AudienceManager Members

Microsoft.Office.Server.Audience Namespace