AudienceManager.GetAudienceIDsAsText Method

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

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

Syntax

'Declaration
Public Shared Function GetAudienceIDsAsText ( _
    globalAudienceIDs As String(), _
    dlDistinguishedNames As String(), _
    sharePointGroupIDs As String() _
) As String
'Usage
Dim globalAudienceIDs As String()
Dim dlDistinguishedNames As String()
Dim sharePointGroupIDs As String()
Dim returnValue As String

returnValue = AudienceManager.GetAudienceIDsAsText(globalAudienceIDs, _
    dlDistinguishedNames, sharePointGroupIDs)
public static string GetAudienceIDsAsText(
    string[] globalAudienceIDs,
    string[] dlDistinguishedNames,
    string[] sharePointGroupIDs
)

Parameters

  • globalAudienceIDs
    Type: []

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

  • dlDistinguishedNames
    Type: []

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

  • sharePointGroupIDs
    Type: []

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

Return Value

Type: System.String
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 "

See Also

Reference

AudienceManager Class

AudienceManager Members

Microsoft.Office.Server.Audience Namespace