LookupUser Method
Finds a mailing list user with the specified e-mail address.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Function LookupUser ( _
email As String _
) As MailingListUser
'Usage
Dim instance As MailingList
Dim email As String
Dim returnValue As MailingListUser
returnValue = instance.LookupUser(email)
public MailingListUser LookupUser(
string email
)
public:
MailingListUser^ LookupUser(
String^ email
)
public function LookupUser(
email : String
) : MailingListUser
Parameters
- email
Type: System..::.String
A string that contains the user's e-mail address.
Return Value
Type: Microsoft.CommerceServer.Marketing..::.MailingListUser
A MailingListUser object that represents the user, including the user's e-mail address, or nullNothingnullptra null reference (Nothing in Visual Basic) if user with the specified e-mail address does not exist in the current list.
Remarks
Returns a MailingListUser object a list entry with the specified e-mail address. Returns nullNothingnullptra null reference (Nothing in Visual Basic) if this email address is not in the list.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.