de la propiedad AudienceManager.AudienceOperatorList
Obtiene un objeto ArrayList que contiene referencias a objetos AudienceOperator .
Espacio de nombres: Microsoft.Office.Server.Audience
Ensamblado: Microsoft.Office.Server.UserProfiles (en Microsoft.Office.Server.UserProfiles.dll)
Sintaxis
'Declaración
Public ReadOnly Property AudienceOperatorList As ArrayList
Get
'Uso
Dim instance As AudienceManager
Dim value As ArrayList
value = instance.AudienceOperatorList
public ArrayList AudienceOperatorList { get; }
Valor de propiedad
Tipo: System.Collections.ArrayList
objeto System.Collections.ArrayList que representa una lista de objetos AudienceOperator asociados con esta audiencia.
Comentarios
La propiedad AudienceOperator es de sólo lectura.
Ejemplos
En el ejemplo de código siguiente se muestra cómo recuperar y presentar los operadores asociados a esta audiencia.
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")