AudienceManager.GetAudienceIDsAsText(String[], String[], String[]) AudienceManager.GetAudienceIDsAsText(String[], String[], String[]) AudienceManager.GetAudienceIDsAsText(String[], String[], String[]) Method

Definition

Creates a delimited text representation of the specified Audience objects’ identifiers.

public:
 static System::String ^ GetAudienceIDsAsText(cli::array <System::String ^> ^ globalAudienceIDs, cli::array <System::String ^> ^ dlDistinguishedNames, cli::array <System::String ^> ^ sharePointGroupIDs);
public static string GetAudienceIDsAsText (string[] globalAudienceIDs, string[] dlDistinguishedNames, string[] sharePointGroupIDs);
Public Shared Function GetAudienceIDsAsText (globalAudienceIDs As String(), dlDistinguishedNames As String(), sharePointGroupIDs As String()) As String
Parameters
globalAudienceIDs
String[]

A string Array containing the GUIDs of Global rule-based Audience objects.

dlDistinguishedNames
String[]

A string Array containing the DistinguishedName identifiers of Distribution List based Audience objects.

sharePointGroupIDs
String[]

A string Array containing the GroupIDs of SharePoint Group based Audience objects.

Returns

Returns a string that contains a text representation of the specified Audience objects. See Remarks for more information.

Remarks

The Return Value string contains the Audience identifiers in the order and format specified below. The Audience groups are separated by “;;”.

  1. Global Audience GUIDs delimited by commas.
  2. Distribution List names separated by “\r\n” (Windows line break).
  3. Sharepoint Group IDs separated by commas.

Sample return: " A88B9DCB-5B82-41E4-8A19-17672F307B95, B88B9DCB-5B82-41E4-8A19-17672F307B95 ;; cn=all developers,ou=distribution lists,dc=redmond,dc=corp,dc=microsoft,dc=com \r\n cn=all testers,ou=distribution lists,dc=redmond,dc=corp,dc=microsoft,dc=com \r\n ;; 1,12,21,37 "

Applies to