Share via


AudienceLoader.IsUserMemberOfDL Method

Determines whether the current user is a member of the specified distribution list.

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

Syntax

'Declaration
Public Function IsUserMemberOfDL ( _
    dlDistringuishedName As String _
) As Boolean
'Usage
Dim instance As AudienceLoader
Dim dlDistringuishedName As String
Dim returnValue As Boolean

returnValue = instance.IsUserMemberOfDL(dlDistringuishedName)
public bool IsUserMemberOfDL(
    string dlDistringuishedName
)

Parameters

  • dlDistringuishedName
    Type: System.String

    The String object represents the name of the distribution list.

Return Value

Type: System.Boolean
true if the current user is a member of the specified distribution list; otherwise, false.

Remarks

This method determines whether the current user is a member of the specified distribution list.

See Also

Reference

AudienceLoader Class

AudienceLoader Members

Microsoft.Office.Server.WebControls Namespace