다음을 통해 공유


AudienceManager.GetAudienceIDsFromText Method

Counts the number of Audience object identifiers in a delimited string and loads the parsed identifiers in string Arrays.

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

Syntax

'Declaration
Public Shared Function GetAudienceIDsFromText ( _
    audienceTextRepresentation As String, _
    <OutAttribute> ByRef globalAudienceIDs As String(), _
    <OutAttribute> ByRef dlDistinguishedNames As String(), _
    <OutAttribute> ByRef sharePointGroupNames As String() _
) As Integer
'Usage
Dim audienceTextRepresentation As String
Dim globalAudienceIDs As String()
Dim dlDistinguishedNames As String()
Dim sharePointGroupNames As String()
Dim returnValue As Integer

returnValue = AudienceManager.GetAudienceIDsFromText(audienceTextRepresentation, _
    globalAudienceIDs, dlDistinguishedNames, _
    sharePointGroupNames)
public static int GetAudienceIDsFromText(
    string audienceTextRepresentation,
    out string[] globalAudienceIDs,
    out string[] dlDistinguishedNames,
    out string[] sharePointGroupNames
)

Parameters

  • audienceTextRepresentation
    Type: System.String

    A string containing Audience object identifiers in the format of the Return Value of the GetAudienceIDsAsText method of the AudienceManager object.

  • globalAudienceIDs
    Type: []

    A reference to a string Array for Global Audience types.

  • dlDistinguishedNames
    Type: []

    A reference to a string Array for Audience objects defined by Distribution Lists.

  • sharePointGroupNames
    Type: []

Return Value

Type: System.Int32
An Int32 value that equals the total number of Audience identifiers in the specified string.

Remarks

If string array references are provided, those arrays will be populated with the parsed Audience identifiers corresponding to the signature parameter names.

See Also

Reference

AudienceManager Class

AudienceManager Members

Microsoft.Office.Server.Audience Namespace